﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master"
    CodeFile="ViewCINoMatchFound.aspx.cs" Inherits="carinsurance_offline_ViewCINoMatchFound"
    MaintainScrollPositionOnPostback="true" EnableEventValidation="false" Async="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" type="text/css" href="../../OLD/css/styles2.css" title="Contemporary" />
    <link href="../../js/tabs/ui/1.10.3/themes/smoothness/jquery-ui.css" rel="stylesheet"
        type="text/css" />
        
    <script src="../../js/tabs/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="../../js/tabs/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitle" runat="Server">
    <table width="100%" cellpadding="5">
        <tr>
            <td style="width: 800px">
                <h1>
                    <asp:Label runat="server" Text="<%$Resources:CarInsurance,NonGGPackages%>" ID="Label7"></asp:Label>
                    &nbsp; - &nbsp;
                    <asp:Label runat="server" Text="" ID="lblCallTypeDesc"></asp:Label></h1>
            </td>
            <td style="width: 200px">
                &nbsp;
            </td>
            <td style="text-align: right">
                <asp:Button runat="server" ID="btnReset" Text="Reset/Reload" Visible="true" OnClick="btnReset_Click"
                    Width="121px" Height="30px" Font-Bold="true" ValidationGroup="none" CausesValidation="false"
                    OnClientClick="return ResetConfirm();" CssClass="blueB ml10" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Label runat="server" Text="-1" ID="lblCallType" Visible="false"></asp:Label>
    <asp:Label runat="server" Text="0" ID="lblResetUrl" Visible="false" />
    <asp:Label runat="server" Text="-1" ID="lblAgentLeadID" Visible="false"></asp:Label>
    <asp:HiddenField ID="hidLastTab" Value="0" runat="server" /><asp:HiddenField ID="hidPromotionId" runat="server" />
    <div class="toggle" runat="server" id="divCarDetailList" visible="false">
        <div class="title opened" id="Div1">
            <img src="../../images/icons/dark/car.png" alt="" class="titleIcon" /><h6>
                <asp:Label runat="server" Text="<%$Resources:General, CarList %>" ID="lblCarDetailListTitle" /></h6>
        </div>
        <div id="CDdetail">
            <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
                <thead>
                    <tr>
                        <td colspan="12">
                            <b>
                                <%=GetGlobalResourceObject("CarInsurance", "CarDetail")%></b>
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <%=GetGlobalResourceObject("CarInsurance", "CarID")%>
                        </td>
                        <td>
                            &nbsp;&nbsp; : &nbsp;
                        </td>
                        <td>
                            <asp:Label Font-Bold="true" ForeColor="Red" runat="server" ID="lblCarDtlCarID" />
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("CarInsurance", "PolicyID")%>
                        </td>
                        <td>
                            &nbsp;&nbsp; : &nbsp;
                        </td>
                        <td>
                            <asp:Label Font-Bold="true" ForeColor="Red" runat="server" ID="lblCarDtlCarPolicyID" />
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("CarInsurance", "CarMakeModel")%>
                        </td>
                        <td>
                            &nbsp;&nbsp; : &nbsp;
                        </td>
                        <td>
                            <asp:Label Font-Bold="true" runat="server" ID="lblCarDtlCarMakeModel" />
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("CarInsurance", "CarModelYear")%>
                        </td>
                        <td>
                            &nbsp;&nbsp; : &nbsp;
                        </td>
                        <td>
                            <asp:Label Font-Bold="true" runat="server" ID="lblCarDtlCarModelYear" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <%=GetGlobalResourceObject("CarInsurance", "InsuranceType")%>
                        </td>
                        <td>
                            &nbsp;&nbsp; : &nbsp;
                        </td>
                        <td>
                            <asp:Label Font-Bold="true" runat="server" ID="lblCarDtlInsuranceType" />
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("CarInsurance", "CoverCommencementDate")%>
                        </td>
                        <td>
                            &nbsp;&nbsp; : &nbsp;
                        </td>
                        <td>
                            <asp:Label Font-Bold="true" runat="server" ID="lblCarDtlComDate" />
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("CarInsurance", "NCB")%>
                        </td>
                        <td>
                            &nbsp;&nbsp; : &nbsp;
                        </td>
                        <td>
                            <asp:Label Font-Bold="true" runat="server" ID="lblCarDtlNCB" />
                        </td>
                        <td>
                            <%=GetGlobalResourceObject("CarInsurance", "QuoteDateTime")%>
                        </td>
                        <td>
                            &nbsp;&nbsp; : &nbsp;
                        </td>
                        <td>
                            <asp:Label Font-Bold="true" runat="server" ID="lblCarDtlModifiedDate" />
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="clear">
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="toggle" runat="server" id="divCustomerPolicyDetail" visible="false">
        <div class="title opened" id="opened1">
            <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" /><h6>
                <asp:Label ID="Label2" runat="server" Text="<%$Resources:CarInsurance,CustomerAndPolicy %>" />
            </h6>
        </div>
        <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
            <thead>
                <tr>
                    <td colspan="3">
                        <b>
                            <%=GetGlobalResourceObject("CarInsurance", "CustomerDetail")%></b>
                    </td>
                    <td colspan="3">
                        <b>
                            <%=GetGlobalResourceObject("CarInsurance", "CarDetail")%></b>
                    </td>
                    <td colspan="6">
                        <b>
                            <%=GetGlobalResourceObject("CarInsurance", "PolicyDetail")%></b>
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "FirstName")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblName" />
                    </td>
                    <!--Car Detaisl-->
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "CarModelYear")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblRegYear" />
                    </td>
                    <!--Policy Details-->
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "InsuranceType")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblInsuranceType" />
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "SumInsured")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblSumInsured" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "LastName")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" ForeColor="Red" runat="server" ID="lblLastName" />
                    </td>
                    <!--Car Detaisl-->
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "EmailAddress")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" ForeColor="Red" runat="server" ID="lblEmailAddress" />
                    </td>
                    <!--Policy Details-->
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "MobileNo")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" ForeColor="Red" runat="server" ID="lblMobileNo" />
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "CoverCommencementDate")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" ForeColor="Red" runat="server" ID="lblCoverCommencementDate" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "Gender")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblGender" />
                    </td>
                    <!--Car Detaisl-->
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "CarMakeModel")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblCarMakeModel" />
                    </td>
                    <!--Policy Details-->
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "CurrentInsurer")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td colspan="4">
                        <asp:Label Font-Bold="true" runat="server" ID="lblCurrentInsurer" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "Occupation") %>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblOccupation" />
                    </td>
                    <!--Car Detaisl-->
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "VehicleType") %>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblVehicleType" />
                    </td>
                    <!--Policy Details-->
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "NamedDriver") %>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblDriverCount" />
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "CTPL")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblCTPL" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "DOB")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblDOB" />
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "GarageType")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblGarageType" />
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "AnyClaimLastYear")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblClaimInfo" />
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "NCB")%>
                    </td>
                    <td>
                        &nbsp;&nbsp; : &nbsp;
                    </td>
                    <td>
                        <asp:Label Font-Bold="true" runat="server" ID="lblNCD" />
                    </td>
                </tr>
                <tr>
                    <td colspan="5">
                        <span style="display: none;"><b>Ref.
                            <%=GetGlobalResourceObject("CarInsurance", "CarID")%>:</b><asp:Label ID="lblRefCarID"
                                runat="server" Font-Bold="true" ForeColor="Red" /><b><%=GetGlobalResourceObject("CarInsurance", "MobileNo")%>:</b><asp:Label
                                    ID="lblRefMobile" runat="server" Font-Bold="true" ForeColor="Red" /><b><%=GetGlobalResourceObject("CarInsurance", "EmailAddress")%>:</b><asp:Label
                                        ID="lblRefEmail" runat="server" Font-Bold="true" ForeColor="Red" /></span>
                        <b>
                            <%=GetGlobalResourceObject("CarInsurance", "QuoteDateTime")%>:</b><asp:Label ID="lblUserModifiedDateTime"
                                runat="server" Font-Bold="true" ForeColor="Red" /><asp:Label ID="lblRefModifiedDateTime"
                                runat="server" Font-Bold="true" ForeColor="Red" Visible="false" />
                    </td>
                    <td><asp:Image runat="server" ID="imgFB" ImageUrl="~/images/icons/fb-big.png" Width="20px" Visible="false" /></td>
                    <td colspan="2">
                        <b><asp:Label ID="lblDiscountTen" runat="server" Font-Bold="true" ForeColor="Red" /></b>
                    </td>
                    <td colspan="4">
                        <b><asp:Label ID="lblOtherCustomer" runat="server" Font-Bold="true" ForeColor="Red" /></b>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="clear">
        </div>
    </div>
    <div runat="server" id="divLinks" visible="false">
        <div class="body" id="newbtn">
            <asp:Button ID="btnRenewalQuote" CssClass="blueB ml10 mt10" runat="server" Text="Re-Run Renewal Quote"
                OnClick="btnRenewQuote_Click" OnClientClick="return ConfirmRenewQuote();" />
            <asp:HyperLink ID="hplReRunQuote" CssClass="wButton bluewB mr15 mt10" runat="server"
                Text="<%$Resources:CarInsurance,ReRunQuote %>" />
            <asp:HyperLink ID="hplNewQuote" CssClass="wButton bluewB mr15 mt10" runat="server"
                Text="<%$Resources:CarInsurance,RunNewQuote %>" />
            <asp:Label runat="server" ID="lblLastYearRefNo" />
            <asp:Label runat="server" ID="lblRenewalQuoteMessage" />
            <asp:Label runat="server" ID="lblRenewalStaus" Visible="false" Text="0" />
        </div>
    </div>
    <div id="tabs">
        <ul>
            <li><a href="#tabs-1" onclick="ontabclick('1');">Contact</a></li>
            <li><a href="#tabs-2" onclick="ontabclick('2');">Quote</a></li>
            <li><a href="#tabs-2" onclick="ontabclick('3');">Order</a></li>
        </ul>
        <div id="tabs-1">
            <div class="topdisplay pb10">
                <div id="Div2" class="toggle" runat="server">
                    <div class="title opened" id="Div3">
                        <img src="../../images/icons/dark/call.png" alt="" class="titleIcon" /><h6>
                            <asp:Label ID="lblStartDayNameCaption" Font-Bold="true" runat="server" Text="<%$Resources:General,Started%>" />
                            at
                            <asp:Label runat="server" ID="lblStartDayName" Font-Bold="true" />
                            &nbsp;<asp:Label runat="server" ID="lblStartDateTime" Visible="true" ForeColor="Red"
                                Font-Bold="true" />
                            <asp:Label ID="lblCallDurationCaption" Font-Bold="true" runat="server" Text="<%$Resources:General,CallDuration%>" />
                            <span style="display: none;">M:<asp:TextBox runat="server" ID="txtMinute" Text="00"
                                Width="30px" />
                                S:<asp:TextBox runat="server" ID="txtSecond" Text="00" Width="30px" /></span>
                            <asp:Label runat="server" ID="lblCallDurationTimer" Font-Bold="true" Font-Size="Large" />
                        </h6>
                    </div>
                    <table class="sTable" width="100%">
                        <tr>
                            <td>
                                <asp:Label runat="server" Text="Agent - Call" ID="lblCallSessionName" Font-Bold="true"></asp:Label>
                                <asp:Literal ID="ltrPromotion" runat="server" />
                                <asp:Label ID="lblTESCO200" runat="server" Font-Bold="true" ForeColor="Green" Font-Size="Large" />
                            </td>
                        </tr>
                    </table>
                </div>
                <asp:HyperLink runat="server" Visible="false" ID="lnkNewCarUsage" NavigateUrl="#"
                    Text="New"></asp:HyperLink>
            </div>
            <div class="nNote nFailure hideit" id="divBuyNowStatusMessage" runat="server">
                <p>
                    <asp:Label runat="server" ID="lblCommenceDateStatus" Visible="false" Text="0" />
                    <asp:Label runat="server" ID="lblCommenceDateStatusMessage" />
                    <asp:Label runat="server" ID="lblQuoteDateTimeStatus" Visible="false" Text="0" />
                    <asp:Label runat="server" ID="lblQuoteDateTimeStatusMessage" />
                    <asp:Label runat="server" ID="lblQuoteStatusMessage" /></p>
            </div>
            <div runat="server" id="divBuyNowStatus" visible="false">
                <asp:Label ID="lblBuyNowStatus" runat="server" Text="" Font-Size="Large" Font-Bold="true" />
                <asp:Button ID="btnBuyNowRefresh" Text="Refresh" runat="server" OnClick="btnBuyNowRefresh_Click" />
            </div>
            <asp:UpdatePanel ID="uplCustomerNote" runat="server">
            <ContentTemplate>
                <div id="div4" class="toggle" runat="server">
                    <div class="title" id="Div5">
                        <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
                        <h6>
                            <asp:Label ID="Label5" runat="server" Text="Customer's Note" />
                            <asp:Label runat="server" ID="lblCustomerDetailRemarkMessage" Font-Bold="true" ForeColor="Red" />
                        </h6>
                    </div>
                    <div class="form">
                        <fieldset class="step">
                            <div class="formRow">
                                Type some notes:
                                <div class="formRight">
                                    <asp:TextBox runat="server" TextMode="MultiLine" Rows="3" Columns="30" ID="txtCustomerDetailRemark" />
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </fieldset>
                        <div class="wizButtons">
                            <span class="wNavButtons">
                                <asp:Button runat="server" ID="btnCustomerDetailRemark" Text="<%$Resources:General,Save%>"
                                    OnClick="btnCustomerDetailRemark_Click" OnClientClick="return SubmitCustomerNoteConfirm();"
                                    CssClass="blueB ml10" />
                            </span>
                            <div class="clear">
                            </div>
                        </div>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        </div>
        <div id="tabs-2" style="display: none">
            <asp:HiddenField runat="server" ID="hidQuoteEmailId" />
            <div class="toggle" runat="server" id="divResultExcel" visible="false">
                <div class="title opened" id="Div7">
                    <img src="../../images/icons/dark/cart.png" alt="" class="titleIcon" />
                    <h6><asp:Label ID="lblQuoteResultTitleExcel" runat="server" Text="<%$Resources:CarInsurance,Quotes %>" /></h6>
                    <asp:UpdateProgress AssociatedUpdatePanelID="uplSearchKawna" DisplayAfter="50" runat="server"
                        ID="upgSearchKawna">
                        <ProgressTemplate>
                            &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../images/loaders/loader2.gif" style="text-align: center"
                                alt="Loading..." />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                </div>
                <div>
                    <asp:UpdatePanel runat="server" ID="uplSearchKawna">
                        <ContentTemplate>
                            <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
                                <tr style="text-align:right">
                                    <td colspan="5">
                                        <asp:Label runat="server" ID="lblNLastUpdate" ></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width:140px">
                                        <asp:Label runat="server" ID="lblNInsuranceType"  Text="<%$Resources:General,InsuranceType%>" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNInsuranceType" onclick="DisplayClassOne();" AutoPostBack="true" OnSelectedIndexChanged="ddlNInsuranceType_SelectedIndexChanged" runat="server"></asp:DropDownList>
                                        <asp:RequiredFieldValidator runat="server" ID="rfvNInsuranceType" ControlToValidate="ddlNInsuranceType"
                                            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="newsearch" Display="Dynamic"></asp:RequiredFieldValidator>
                                    </td>
                                    <td><asp:Label runat="server" ID="Label17"  Text="<%$Resources:Proposal,InsuranceCompany%>" /></td>
                                    <td><asp:DropDownList ID="ddlNInsuranceCompany" runat="server" Width="200px">
                                        </asp:DropDownList></td>
                                    <td><asp:Button ID="btnNewSearch" runat="server" Text="<%$Resources:General,Search%>"
                                            ValidationGroup="newsearch" OnClientClick="ClearHidText();" OnClick="btnNewSearch_Click" Width="120px" Height="30px"
                                            Font-Bold="true" CssClass="blueB ml10" /></td>
                                </tr>
                                <tr id="trClass11" runat="server" style="display:none">
                                    <td>
                                        <asp:Label runat="server" ID="Label18"  Text="<%$Resources:NonGG,CarYear%>" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNCarYear" runat="server" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlNCarYear_SelectedIndexChanged">
                                            <asp:ListItem Text="2006" Value="2006"></asp:ListItem>
                                            <asp:ListItem Text="2007" Value="2007"></asp:ListItem>
                                            <asp:ListItem Text="2008" Value="2008"></asp:ListItem>
                                            <asp:ListItem Text="2009" Value="2009"></asp:ListItem>
                                            <asp:ListItem Text="2010" Value="2010"></asp:ListItem>
                                            <asp:ListItem Text="2011" Value="2011"></asp:ListItem>
                                            <asp:ListItem Text="2012" Value="2012"></asp:ListItem>
                                            <asp:ListItem Text="2013" Value="2013"></asp:ListItem>
                                            <asp:ListItem Text="2014" Value="2014"></asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:DropDownList ID="ddlNCarModel" runat="server" Width="100px" AutoPostBack="true" OnSelectedIndexChanged="ddlNCarModel_SelectedIndexChanged">
                                            <asp:ListItem Text="Vios" Value="Vios"></asp:ListItem>
                                            <asp:ListItem Text="City" Value="City"></asp:ListItem>
                                            <asp:ListItem Text="Jazz 1.5cc" Value="Jazz"></asp:ListItem>
                                            <asp:ListItem Text="Yaris" Value="Yaris"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td><asp:Label runat="server" ID="Label19"  Text="<%$Resources:Proposal,IsClaim%>" /></td>
                                    <td><asp:DropDownList ID="ddlNIsClaim" runat="server" Width="200px">
                                         <asp:ListItem Value="-1" Text="<%$ Resources:General,All%>" />
                                         <asp:ListItem Value="1" Text="<%$ Resources:CarInsurance,Claim%>" />
                                         <asp:ListItem Value="0" Text="<%$ Resources:CarInsurance,NoClaim%>" />
                                    </asp:DropDownList></td>
                                    <td></td>
                                </tr>
                                <tr id="trClass12" runat="server" style="display:none">
                                    <td>
                                        <asp:Label runat="server" ID="Label22"  Text="<%$Resources:Proposal,NamedDriver%>" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNDriverAge" runat="server">
                                            <asp:ListItem Value="-1" Text="<%$ Resources:General,All%>" />
                                            <asp:ListItem Value="0" Text="<%$ Resources:CarInsurance,NoNamedDriver%>" />
                                            <asp:ListItem Value="18" Text="18-24" ></asp:ListItem>
                                            <asp:ListItem Value="25" Text="25-35" ></asp:ListItem>
                                            <asp:ListItem Value="36" Text="36-50" ></asp:ListItem>
                                            <asp:ListItem Value="50" Text=">50" ></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td><asp:Label runat="server" ID="Label23"  Text="<%$Resources:Proposal,RegistrationProvince%>" /></td>
                                    <td><asp:DropDownList ID="ddlNRegistraProvince" runat="server" Width="200px">
                                         <asp:ListItem Value="-1" Text="<%$ Resources:General,All%>" />
                                         <asp:ListItem Value="upc" Text="<%$ Resources:CarInsurance,Province_UPC%>" />
                                    </asp:DropDownList></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label runat="server" ID="Label21" Text="<%$Resources:Proposal,TypeofVehicle%>" />
                                    </td>
                                    <td colspan="4">
                                        <asp:DropDownList ID="ddlNCarType" runat="server">
                                            <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>" />
                                            <asp:ListItem Value="110" Text="<%$ Resources:CarInsurance,VehicleType_Private%>" />
                                            <asp:ListItem Value="320" Text="<%$ Resources:CarInsurance,VehicleType_Pickup%>" />
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator runat="server" ID="rfvNCarType" ControlToValidate="ddlNCarType"
                                            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="newsearch" Display="Dynamic"></asp:RequiredFieldValidator>
                                        &nbsp;&nbsp;&nbsp;<asp:CheckBox runat="server" ID="chkIsEurope" Text="<%$ Resources:CarInsurance,IsEurope%>" />
                                    </td>
                                </tr>
                                <tr>
                                    <td><asp:Label runat="server" ID="Label14"  Text="<%$Resources:CarInsurance,SumInsured%>" /></td>
                                    <td>
                                        <asp:DropDownList ID="ddlNSumInsured" runat="server"></asp:DropDownList>
                                    </td>
                                    <td><asp:Label runat="server" Text="<%$Resources:CarInsurance,GarageType%>" ID="lblQueryGarageType" /></td>
                                    <td><asp:DropDownList runat="server" ID="ddlQueryGarageType">
                                            <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>" />
                                            <asp:ListItem Value="1" Text="<%$ Resources:CarInsurance,Garage_Authorized%>" />
                                            <asp:ListItem Value="2" Text="<%$ Resources:CarInsurance,Garage_Dealer%>" />
                                        </asp:DropDownList></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label runat="server" ID="Label1" Text="<%$Resources:Proposal,Deductible%>" />
                                    </td>
                                    <td>
                                        <asp:DropDownList
                                            ID="ddlNDeduct" runat="server">
                                            <asp:ListItem Text="<%$ Resources:Proposal,Option_DeductNo%>" Value="0" />
                                            <asp:ListItem Text="<%$ Resources:Proposal,Option_DeductYes%>" Value="1" />
                                            <asp:ListItem Text="<%$ Resources:Proposal,Option_DeductAll%>" Value="-1" />
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:Label runat="server" ID="Label12"  Text="<%$Resources:CarInsuranceResultPage,Seat%>" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNSeat" runat="server">
                                            <asp:ListItem Text="<%$ Resources:General,Select%>" Value="-1" />
                                            <asp:ListItem Text="2" Value="2" />
                                            <asp:ListItem Text="3" Value="3" />
                                            <asp:ListItem Text="5" Value="5" />
                                            <asp:ListItem Text="6" Value="6" />
                                            <asp:ListItem Text="7" Value="7" />
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:Label runat="server" ID="Label11"  Text="<%$Resources:CarInsuranceResultPage,FloodCover%>" />&nbsp;&nbsp;
                                        <asp:DropDownList ID="ddlNFlood" runat="server">
                                            <asp:ListItem Text="<%$ Resources:Proposal,Option_DeductAll%>" Value="-1" />
                                            <asp:ListItem Text="<%$ Resources:Proposal,Option_DeductNo%>" Value="0" />
                                            <asp:ListItem Text="<%$ Resources:Proposal,Option_DeductYes%>" Value="1" />
                                        </asp:DropDownList>
                                    </td>
                                    <td style="display:none">
                                        <asp:Label runat="server" Text="<%$Resources:CarInsurance,VehicleType%>" ID="Label15" />
                                        &nbsp;&nbsp;<asp:DropDownList runat="server" ID="ddlNVehicleType">
                                            <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>" />
                                            <asp:ListItem Value="1" Text="110" />
                                            <asp:ListItem Value="2" Text="320" />
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr style="display:none">
                                    <td>
                                        <asp:Label runat="server" ID="Label20" Text="<%$Resources:CarInsurance,UseCarInProvince%>" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNProvinceRegistration" Width="145px" runat="server">
                                            <asp:ListItem Text="<%$ Resources:General,Select%>" Value="-1" />
                                            <asp:ListItem Text="<%$ Resources:Proposal,Province_BKK%>" Value="BKK" />
                                            <asp:ListItem Text="<%$ Resources:Proposal,Province_UPC%>" Value="UPC" />
                                        </asp:DropDownList>
                                        <%--<asp:RequiredFieldValidator runat="server" ID="rfvNProvinceRegistration" ControlToValidate="ddlNProvinceRegistration"
                                            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="newsearch" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                                    </td>
                                     <td>
                                         <asp:Label runat="server" ID="Label24" Text="<%$Resources:NonGG,IsCTPL%>" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNCTPL" runat="server">
                                            <asp:ListItem Value="1" Text="<%$ Resources:Proposal,Yes%>"></asp:ListItem>
                                            <asp:ListItem Value="0" Text="<%$ Resources:Proposal,No%>"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:Label runat="server" ID="Label16" Text="<%$Resources:Proposal,AccessaryAndModificationAmount%>" />&nbsp;&nbsp;
                                        <asp:TextBox ID="txtNAccModAmount" runat="server" MaxLength="7" Width="100px" />
                                        <%--<asp:RequiredFieldValidator runat="server" ID="rfvNAccModAmount" ControlToValidate="txtNAccModAmount"
                                            ErrorMessage="" Text="*" ValidationGroup="newsearch" Display="Dynamic"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revNAccModAmount" runat="server" ControlToValidate="txtNAccModAmount"
                                            Display="Dynamic" ValidationGroup="newsearch" ErrorMessage="<%$Resources:General,Notvalid%>"
                                            ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>--%>
                                    </td>
                                </tr>
                                <tr style="background-color: #DFBFFF; display:none">
                                    <td>
                                        <asp:Label runat="server" ID="Label29" Text="<%$Resources:Proposal,NCB%>" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNNCB" runat="server">
                                            <asp:ListItem Text="<%$ Resources:General,Select%>" Value="-1" />
                                            <asp:ListItem Text="0 %" Value="0"></asp:ListItem>
                                            <asp:ListItem Text="20 %" Value="20"></asp:ListItem>
                                            <asp:ListItem Text="30 %" Value="30"></asp:ListItem>
                                            <asp:ListItem Text="40 %" Value="40"></asp:ListItem>
                                            <asp:ListItem Text="50 %" Value="50"></asp:ListItem>
                                        </asp:DropDownList>
                                        <%--<asp:RequiredFieldValidator runat="server" ID="rfvNNCB" ControlToValidate="ddlNNCB"
                                            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="newsearch" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                                    </td>
                                    <td width="100" height="25">
                                        <asp:Label runat="server" ID="Label28" Text="<%$Resources:CarInsurance,CurrentProvider%>" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNCurrentProvider" runat="server" Width="200px">
                                            <asp:ListItem Value="-1" Text="<%$ Resources:General,Select%>"></asp:ListItem>
                                        </asp:DropDownList>
                                        <%--<asp:RequiredFieldValidator runat="server" ID="rfvNCurrentProvider" ControlToValidate="ddlNCurrentProvider"
                                            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="newsearch" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                                    </td>
                                    <td><asp:Button ID="btnUpDateCar" runat="server" Text="<%$Resources:General,UpdateCarDetails%>"
                                            ValidationGroup="newsearch" Width="120px" Height="30px"
                                            Font-Bold="true" Visible="false" CssClass="violetB ml10" /></td>
                                </tr>
                                <tr style="background-color: #DFBFFF; display:none">
                                    <td>
                                        <asp:Label runat="server" ID="Label30" Text="<%$Resources:Proposal,IsClaim%>" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNAnyClaim" runat="server">
                                            <asp:ListItem Value="-1" Text="<%$ Resources:General,Select%>"></asp:ListItem>
                                            <asp:ListItem Value="1" Text="<%$ Resources:Proposal,Yes%>"></asp:ListItem>
                                            <asp:ListItem Value="0" Text="<%$ Resources:Proposal,No%>"></asp:ListItem>
                                        </asp:DropDownList>
                                        <%--<asp:RequiredFieldValidator runat="server" ID="rfvNAnyClaim" ControlToValidate="ddlNAnyClaim"
                                            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="newsearch" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                                    </td>
                                    <td>
                                        <asp:Label runat="server" ID="Label31" Text="<%$Resources:Proposal,NamedDrivers%>" />
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNNamedDrivers" runat="server">
                                            <asp:ListItem Value="0" Text="<%$ Resources:Proposal,No%>"></asp:ListItem>
                                            <asp:ListItem Value="1" Text="1"></asp:ListItem>
                                            <asp:ListItem Value="2" Text="2"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <asp:Label runat="server" ID="lblMessageKawna" Text="" ForeColor="Red" Font-Bold="true" />
                                    </td>
                                    <td></td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <div class="clear">
                    </div>
                    <asp:UpdatePanel runat="server" ID="uplCarResultExcel">
                        <ContentTemplate>
                            <asp:GridView ID="gvCarResultExcel" runat="server" AutoGenerateColumns="False" CellPadding="2"
                                Width="100%" GridLines="None" CssClass="sTable" DataKeyNames="PremiumExcelId,ProviderCompanyId"
                                EmptyDataText="<div class='pad_10'><h6>No Matches Found!</h6><span class='font_12'><strong>Please take note that there are no matches found based on customer's details entered.</strong></span><div class='seperator'></div><div class='seperator'></div></div>"
                                EmptyDataRowStyle-CssClass="" OnRowCreated="gvCarResultExcel_RowCreated" OnRowCommand="gvCarResultExcel_RowCommand"
                                AllowSorting="false" OnRowDataBound="gvCarResultExcel_RowDataBound">
                                <Columns>
                                    <asp:BoundField DataField="PremiumExcelId" HeaderText="PremiumExcelId" Visible="false" />
                                    <asp:BoundField DataField="CXCoverTypeId" HeaderText="CoverTypeId" Visible="false" />
                                    <asp:BoundField DataField="ProviderCompanyId" HeaderText="ProviderCompanyId" Visible="false" />
                                    <asp:TemplateField HeaderText="<%$Resources:CarInsuranceResultPage,Insurer %>" ItemStyle-Width="150px"
                                        SortExpression="CompanyName">
                                        <ItemTemplate>
                                            <div>
                                                <asp:Image ID="imgCompanyLogo" runat="server" ToolTip='<%# Eval("PackageName") %>' />
                                            </div>
                                            <div>
                                                <asp:Label ID="lblPackageName" runat="server" Text='<%# Eval("PackageName") %>' />
                                            </div>
                                            <div>
                                                <asp:HyperLink ID="hplWorkshopLink" runat="server" Text="<%$Resources:CarInsurance,GarageLink %>" />
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="CompanyName" Visible="false" HeaderText="Company Name"
                                        SortExpression="CompanyName" />
                                    <asp:BoundField DataField="TotalVMI" DataFormatString="{0:#,0.00}" HtmlEncode="false"
                                        HeaderText="<%$Resources:CarInsuranceResultPage,TotalVMI %>" HeaderStyle-Width="90"
                                        SortExpression="TotalVMI" Visible="false" />
                                    <asp:BoundField DataField="AnnualPremium" Visible="false" />
                                    <asp:TemplateField HeaderText="<%$Resources:CarInsuranceResultPage,TotalVMI %>" SortExpression="TotalVMI"
                                        HeaderStyle-Width="110">
                                        <ItemTemplate>
                                            <div>
                                                <asp:Label ID="lblResultPromotionPrice" runat="server" Font-Bold="true" ForeColor="Blue"
                                                    Text='<%# Eval("PromotionPrice", "{0:#0,000.00}") %>' />
                                            </div>
                                            <div>
                                                <asp:Label ID="lblOriginalPrice" runat="server" Text="<%$Resources:CarInsuranceResultPage,OriginalPrice %>"
                                                    Font-Bold="true"></asp:Label>
                                            </div>
                                            <div>
                                                <asp:Label ID="lblResultAnnualPremium" runat="server" Text='<%# Eval("Premium", "{0:#0,000.00}") %>'></asp:Label>
                                            </div>
                                            <div><b><asp:Label ID="lblFloodCover" runat="server" Text="" /></b></div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$Resources:CarInsuranceResultPage,CTPL %>" HeaderStyle-Width="60"
                                        SortExpression="TotalCMI" Visible="false">
                                        <ItemTemplate>
                                            <div>
                                                <asp:Image ID="imgCTPL" ImageUrl="~/OLD/images/icons/X.gif" runat="server" />
                                            </div>
                                            <div>
                                                <asp:Label ID="lblCTPLSymbol" runat="server" Text="" />
                                                <asp:Label ID="lblCTPL" runat="server" Text="" />
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField ItemStyle-CssClass="green_item" HeaderStyle-CssClass="green_bottom"
                                        HeaderStyle-Width="80px" HeaderText="<%$Resources:CarInsuranceResultPage,DEC %>"
                                        SortExpression="DEC">
                                        <ItemTemplate>
                                            <div>
                                                <asp:Label ID="lblDECZero" runat="server" Text="Waived" />
                                            </div>
                                            <div>
                                                <asp:Label ID="lblDECSymbol" runat="server" Text="" />
                                                <asp:Label ID="lblDEC" runat="server" Text="" />
                                            </div>
                                            <div><b><asp:Label ID="lblExcelGarage" runat="server" Text="" /></b></div>
                                            <div><b><asp:Label ID="lblDriverAge" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DriverAgeName")%>'></asp:Label></b></div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField ItemStyle-CssClass="green_item" HeaderStyle-CssClass="green_bottom"
                                        HeaderStyle-Width="80px" HeaderText="<%$Resources:CarInsuranceResultPage,OwnDamageFireTheft %>"
                                        SortExpression="SumInsured">
                                        <ItemTemplate>
                                            <div>
                                                <asp:Image ID="imgSumInsured" ImageUrl="~/OLD/images/icons/X.gif" runat="server" />
                                            </div>
                                            <div>
                                                <asp:Label ID="lblSumInsuredSymbol" runat="server" Text="" />
                                                <asp:Label ID="lblSumInsured" runat="server" Text="" />
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="TPPD" ItemStyle-CssClass="blue_item" HeaderStyle-CssClass="blue_bottom"
                                        DataFormatString="{0:#,0}" HeaderStyle-Width="90" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TPPD %>"
                                        SortExpression="TPPD" />
                                    <asp:BoundField DataField="TPBIA" ItemStyle-CssClass="blue_item" HeaderStyle-CssClass="blue_bottom"
                                        DataFormatString="{0:#,0}" HeaderStyle-Width="90" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TPBIA %>"
                                        SortExpression="TPBIA" />
                                    <asp:BoundField DataField="TPBIP" ItemStyle-CssClass="blue_item" HeaderStyle-CssClass="blue_bottom"
                                        DataFormatString="{0:#,0}" HeaderStyle-Width="90" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TPBIP %>"
                                        SortExpression="TPBIP" />
                                    <asp:BoundField DataField="PADriver" ItemStyle-CssClass="gold_item" HeaderStyle-CssClass="gold_bottom"
                                        DataFormatString="{0:#,0}" HeaderStyle-Width="90" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,PADriver %>"
                                        SortExpression="PADriver" />
                                    <asp:BoundField DataField="MedicalExpense" ItemStyle-CssClass="gold_item" DataFormatString="{0:#,0}"
                                        HeaderStyle-Width="80" HtmlEncode="false" HeaderStyle-CssClass="gold_bottom"
                                        HeaderText="<%$Resources:CarInsuranceResultPage,MED %>" SortExpression="MedExp" />
                                    <asp:BoundField DataField="BailBond" ItemStyle-CssClass="gold_item" HeaderStyle-CssClass="gold_bottom"
                                        DataFormatString="{0:#,0}" HeaderStyle-Width="90" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,BailBond %>"
                                        SortExpression="BailBond" />
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <div>
                                                <asp:Button ID="btnSelect" runat="server" Width="65px" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"
                                                    CommandName="Select" OnClientClick="scrollToQuote();" CssClass="blueB ml10" Text="<%$Resources:General,Select%>" /></div>
                                            <div style="text-align: center; padding-top: 10px">
                                                &nbsp;&nbsp;<asp:CheckBox runat="server" ID="chkEditResult" onclick="QuoteEmail(this);" /><asp:HiddenField
                                                    runat="server" ID="hidCarResultId" Value='<%# DataBinder.Eval(Container.DataItem, "PremiumExcelId")%>' />
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="Flood" HeaderText="Flood" Visible="false" />
                                </Columns>
                                <FooterStyle />
                                <PagerStyle />
                                <SelectedRowStyle />
                                <HeaderStyle CssClass="gridheader" />
                                <EditRowStyle />
                                <AlternatingRowStyle CssClass="gridodd" />
                                <RowStyle CssClass="grideven" />
                            </asp:GridView>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <div class="clear">
                    </div>
                    <asp:UpdatePanel ID="uplSendQuotesEmail" runat="server">
                        <ContentTemplate>
                            <div class="toggle" runat="server" id="divSendQuotes">
                                <div class="widgets">
                                    <div class="form">
                                        <h6>
                                        <%=GetGlobalResourceObject("CarInsuranceResultPage", "ExcelPremiumRecord")%></h6>
                                        <hr style="width:99%; color:Silver" />
                                        <asp:GridView ID="grdExcelSelect" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                            CellPadding="2" EmptyDataText="There are no data records to display." CssClass="sTable"
                                            Width="100%" GridLines="None" DataKeyNames="CXBrokerPremiumId" OnRowCommand="grdExcelSelect_RowCommand">
                                            <Columns>
                                                <asp:BoundField DataField="CXBrokerPremiumId" Visible="false" HeaderText="CXBrokerPremiumId"
                                                    SortExpression="CXBrokerPremiumId" />
                                                <asp:BoundField DataField="ProviderCoverTypeId" Visible="false" HeaderText="ProviderCoverTypeId"
                                                    SortExpression="ProviderCoverTypeId" />
                                                <asp:ImageField DataAlternateTextField="CompanyName" DataImageUrlField="LogoUrl"
                                                    HeaderText="Logo">
                                                </asp:ImageField>
                                                <asp:BoundField DataField="CompanyName" HeaderText="<%$Resources:CarInsurance,CompanyName%>"
                                                    SortExpression="CompanyName" Visible="false" />
                                                <asp:BoundField DataField="ProviderCoverTypeDesc" HeaderText="<%$Resources:CarInsurance,InsuranceType%>"
                                                    SortExpression="ProviderCoverTypeDesc" />
                                                <asp:BoundField DataField="Package" HeaderText="<%$Resources:General,PackageName%>"
                                                    SortExpression="Package" />
                                                <asp:BoundField DataField="WorkShopDesc" HeaderText="<%$Resources:CarInsurance,GarageType%>"
                                                    SortExpression="WorkShopDesc" />
                                                <asp:BoundField DataField="OwnDamage" DataFormatString="{0:#,0}" HeaderText="<%$Resources:CarInsurance,SumInsured%>"
                                                    SortExpression="OwnDamage" />
                                                <asp:BoundField DataField="TotalCMI" DataFormatString="{0:#,0}" HeaderText="<%$Resources:CarInsurance,CTPL%>"
                                                    SortExpression="TotalCMI" />
                                                <asp:BoundField DataField="Premium" DataFormatString="{0:#,0}" HeaderText="<%$Resources:General,PremiumAmount%>"
                                                    SortExpression="Premium" />
                                                <asp:BoundField DataField="Info5" HeaderText="<%$Resources:CarInsuranceResultPage,FloodCover%>"
                                                    SortExpression="Info5" />
                                                <asp:BoundField ItemStyle-Width="50px" DataField="ModifiedDate" DataFormatString="{0:dd/MMM/yyyy hh:mm:ss tt}"
                                                    HeaderText="<%$Resources:General,DateTime%>" SortExpression="ModifiedDate" />
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:Button ID="btnSelect" runat="server" Width="60px" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"
                                                            CommandName="Select" OnClientClick="scrollToQuote();" CssClass="blueB ml10" Text="<%$Resources:General,Select%>" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:Button ID="btnDelete" runat="server" Width="60px" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"
                                                            CommandName="DeleteRow" OnClientClick="return DeleteConfirm();" CssClass="blueB ml10"
                                                            Text="<%$Resources:General,Delete%>" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <FooterStyle />
                                            <PagerStyle />
                                            <SelectedRowStyle />
                                            <HeaderStyle />
                                            <EditRowStyle />
                                            <AlternatingRowStyle />
                                            <RowStyle />
                                        </asp:GridView>
                                        <hr style="width:99%; color:Silver" />
                                        <fieldset class="step">
                                            <table cellpadding="0" cellspacing="0" width="100%" border="0">
                                                <tr>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td style="height: 40px;">
                                                        <asp:TextBox ID="txtOnlineConfirmEmail" runat="server" Width="200px" />
                                                        <asp:RequiredFieldValidator ID="rfvOnlineConfirmEmail" Enabled="true" Display="Dynamic"
                                                            ValidationGroup="sendonlinequotation" runat="server" ControlToValidate="txtOnlineConfirmEmail"
                                                            ErrorMessage="*" Text="*" />
                                                        <asp:RegularExpressionValidator ID="revOnlineConfirmEmail" Enabled="true" Display="Dynamic"
                                                            ValidationGroup="sendonlinequotation" runat="server" ControlToValidate="txtOnlineConfirmEmail"
                                                            ErrorMessage="*" Text="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />&nbsp;&nbsp;<asp:CheckBox
                                                                ID="chkCMI" CausesValidation="false" runat="server" />&nbsp;<%=GetGlobalResourceObject("NonGG", "CTPLCMIGP")%>&nbsp;&nbsp;<asp:CheckBox
                                                                    runat="server" ID="chkExcelEng" Text="&nbsp;English" Font-Bold="true" ForeColor="Red" />
                                                        <asp:Button ID="btnOnlineSendQuotation" runat="server" Text="<%$Resources:General,ConfirmEmailAndSendQuotation%>"
                                                            Visible="true" OnClick="btnOnlineSendQuotation_Click" CssClass="blueB ml10" />&nbsp;&nbsp;&nbsp;<asp:Button ID="btnSelectFromExcel" runat="server" Text="<%$Resources:General,SelectThisPremium%>"
                                                            Visible="true" OnClick="btnSelectFromExcel_Click" CssClass="blueB ml10" />
                                                        <div style="float: right; padding: 5px 0 5px 0;">
                                                            <asp:Button ID="btnExcelPremiumDownload" runat="server" Text="<%$Resources:CarInsurance,DownloadNonGGPremium%>"
                                                                Visible="true" OnClick="btnExcelPremiumDownload_Click" OnClientClick="PremiumDownloadClick();"
                                                                CssClass="blueB ml10" />
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <asp:UpdateProgress AssociatedUpdatePanelID="uplSendQuotesEmail" DisplayAfter="100"
                                                            runat="server" ID="UpdateProgress2">
                                                            <ProgressTemplate>
                                                                &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../images/loaders/loader2.gif" style="text-align: center"
                                                                    alt="Loading..." />
                                                            </ProgressTemplate>
                                                        </asp:UpdateProgress>
                                                        <asp:Label runat="server" Font-Bold="true" ForeColor="Red" ID="lblOnlineSendQuotationMessage" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                    </div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </div>
            <div class="toggle" runat="server" id="divCompletedQuoteDetails" visible="false">
                <div class="title opened" id="opened6">
                    <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
                    <h6>
                        <asp:Label ID="Label10" runat="server" Text="" />Online
                        <asp:Label runat="server" ID="lblApplicationFormSummaryCaption" Text="<%$Resources:General,AppFromGGOnline%>" />
                    </h6>
                </div>
                <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
                    <thead>
                        <tr>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "ReferenceNo")%>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("CarInsurance", "FullName")%>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("General", "PaymentType")%>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("General", "OrderRefNo")%>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("General", "PackageName")%>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("General", "AnnualPremium")%>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("NonGG", "CTPL")%>
                            </td>
                            <td>
                                <%=GetGlobalResourceObject("General", "DateTime")%>
                            </td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                <asp:Label runat="server" ID="lblCQQuoteRefNo" />
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblCQFullName" />
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblCQPaymentType" />
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblCQOrderRefNo" />
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblCQPackageName" />
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblCQPremiumAmount" />
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblCQCTPLStatus" />
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblCQDateTime" />
                            </td>
                        </tr>
                    </tbody>
                </table>
                <div class="clear">
                </div>
            </div>
            <div class="toggle" id="divCallHistory" runat="server" visible="false">
                <div class="title opened" id="opened3">
                    <img src="../../images/icons/dark/call.png" alt="" class="titleIcon" />
                    <h6>
                        <asp:Label runat="server" Text="<%$Resources:General,CallHistory%>" ID="lblCallHistoryTitle" />
                        <asp:Label runat="server" Text="<%$Resources:General,CallHistory%>" ForeColor="Red"
                            ID="lblCallHistoryMessage" />
                        <asp:Label runat="server" Text="0" ForeColor="Red" ID="lblCallHistoryFoundCount" />
                        <asp:Label runat="server" Text="<%$Resources:General,LangOption%>" Visible="false"
                            ID="lblLangOption" />
                    </h6>
                </div>
                <div style="width: 100%; overflow: auto; max-height: 350px;">
                    <asp:GridView ID="gvCallHistory" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        DataSourceID="sqlDsCallHistory" AllowSorting="false" Width="100%" GridLines="None"
                        CssClass="sTable" EmptyDataText="No call history so far." OnRowDataBound="gvCallHistory_RowDataBound">
                        <Columns>
                            <asp:BoundField DataField="CEID" HeaderText="AgentID" SortExpression="CEID" InsertVisible="False"
                                ReadOnly="True" Visible="false">
                                <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField ItemStyle-Width="180px" DataField="FULLNAME" HeaderText="<%$Resources:General,Broker%>"
                                SortExpression="FULLNAME">
                                <ItemStyle Width="180px" HorizontalAlign="Left"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField ItemStyle-Width="80px" DataField="CarID" HeaderText="CarID" HeaderStyle-Font-Bold="true"
                                HeaderStyle-ForeColor="Red" SortExpression="CarID">
                                <ItemStyle Width="80px" Font-Bold="true" BackColor="ActiveBorder" ForeColor="Red"
                                    HorizontalAlign="Left"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField ItemStyle-Width="100px" Visible="false" DataField="CallTypeID" HeaderText="<%$Resources:General,CallType%>"
                                SortExpression="CallTypeID">
                                <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField ItemStyle-Width="100px" HtmlEncode="false" DataField="CallTypeDesc"
                                HeaderText="<%$Resources:General,CallType%>" SortExpression="CallTypeDesc">
                                <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField ItemStyle-Width="100px" HtmlEncode="false" DataField="CallFinish"
                                HeaderText="<%$Resources:General,FinishCall%>" SortExpression="CallFinish">
                                <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                            </asp:BoundField>
                            
                            <asp:BoundField ItemStyle-Width="80px" DataField="CallStatusDesc" HeaderText="<%$Resources:General, Status %>"
                                SortExpression="CallStatusDesc" Visible="true">
                                <ItemStyle Width="120px" HorizontalAlign="Left"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField ItemStyle-Width="80px" DataField="CallDurationDesc" HeaderText="<%$Resources:General,CallDuration%>"
                                SortExpression="CallDurationDesc" Visible="true">
                                <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField ItemStyle-Width="380px" HtmlEncode="false" DataField="Remark" HeaderText="<%$Resources:General,Comments%>"
                                ReadOnly="True" SortExpression="Remark">
                                <ItemStyle Width="380px" HorizontalAlign="Left"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField ItemStyle-Width="80px" DataField="ModifiedDate" HeaderText="<%$Resources:General,DateTime%>"
                                DataFormatString="{0:dd-MMM-yyyy hh:mm tt}" SortExpression="ModifiedDate">
                                <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                            </asp:BoundField>
                        </Columns>
                        <FooterStyle />
                        <PagerStyle />
                        <SelectedRowStyle />
                        <HeaderStyle />
                        <EditRowStyle />
                        <AlternatingRowStyle CssClass="gridodd" />
                        <RowStyle CssClass="grideven" Height="30px" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="sqlDsCallHistory" runat="server" ConnectionString="<%$ ConnectionStrings:CX_CRMDBConnectionString %>"
                        SelectCommand="sprocCXCRMGetCallStatusLogHistory" SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="txtCustomerID" Name="CustomerID" PropertyName="Text"
                                Type="Int64" />
                            <asp:ControlParameter ControlID="lblLangOption" Name="LangOption" PropertyName="Text"
                                Type="Int16" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <div class="clear">
                    </div>
                </div>
            </div>
            <asp:UpdatePanel ID="uplPremiumList" runat="server" UpdateMode="Conditional">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="grvPremiumList" EventName="RowCommand" />
                    <asp:AsyncPostBackTrigger ControlID="btnSubmitPremium" EventName="Click" />
                </Triggers>
                <ContentTemplate>
                    <div class="toggle" runat="server" id="divPremiumList" visible="true">
                        <div class="title opened" id="opened4">
                            <img src="../../images/icons/dark/cart.png" alt="" class="titleIcon" />
                            <h6>
                                <asp:Label ID="Label3" runat="server" Text="<%$Resources:CarInsurance,NonGGPacakagesPremiumList%>" /></h6>
                            <asp:Label runat="server" ID="lblCarMoreDetailID" Text="-1" Visible="false" />
                            <asp:Label runat="server" ID="lblAppStatus" Text="" />
                            <asp:Label runat="server" ID="lblAppStatusMessage" Text="" />
                        </div>
                        <asp:GridView ID="grvPremiumList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            CellPadding="2" EmptyDataText="There are no data records to display." CssClass="sTable"
                            Width="100%" GridLines="None" DataSourceID="sqlDsPremiumList" DataKeyNames="CXBrokerPremiumId, CXBrokerProviderId, AgentId,Info1"
                            OnRowCommand="grvPremiumList_RowCommand" OnSelectedIndexChanged="grvPremiumList_SelectedIndexChanged">
                            <Columns>
                                <asp:BoundField DataField="CXBrokerPremiumId" Visible="false" HeaderText="CXBrokerPremiumId"
                                    SortExpression="CXBrokerPremiumId" />
                                <asp:BoundField DataField="ProviderCoverTypeId" Visible="false" HeaderText="ProviderCoverTypeId"
                                    SortExpression="ProviderCoverTypeId" />
                                <asp:BoundField DataField="AgentName" HeaderText="<%$Resources:General,Broker%>"
                                    SortExpression="AgentName" />
                                <asp:ImageField DataAlternateTextField="CompanyName" DataImageUrlField="LogoUrl"
                                    HeaderText="Logo">
                                </asp:ImageField>
                                <asp:BoundField DataField="CompanyName" HeaderText="<%$Resources:CarInsurance,CompanyName%>"
                                    SortExpression="CompanyName" Visible="false" />
                                <asp:BoundField DataField="Info1" HeaderText="<%$Resources:General,ReferenceNo%>"
                                    SortExpression="Info1" ItemStyle-BackColor="ActiveBorder" ItemStyle-Font-Bold="true"
                                    ItemStyle-ForeColor="Red" ItemStyle-Font-Size="Medium">
                                    <ItemStyle BackColor="ActiveBorder" Font-Bold="True" Font-Size="Medium" ForeColor="Red" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ProviderCoverTypeDesc" HeaderText="<%$Resources:CarInsurance,InsuranceType%>"
                                    SortExpression="ProviderCoverTypeDesc" />
                                <asp:BoundField DataField="Package" HeaderText="<%$Resources:General,PackageName%>"
                                    SortExpression="Package" Visible="false" />
                                <asp:BoundField DataField="WorkShopDesc" HeaderText="<%$Resources:CarInsurance,GarageType%>"
                                    SortExpression="WorkShopDesc" />
                                <asp:BoundField DataField="OwnDamage" DataFormatString="{0:#,0}" HeaderText="<%$Resources:CarInsurance,SumInsured%>"
                                    SortExpression="OwnDamage" />
                                <asp:BoundField DataField="DiscountPercentage" Visible="true" HeaderText="Discount (%)"
                                    SortExpression="DiscountPercentage" />
                                <asp:BoundField DataField="TotalCMI" DataFormatString="{0:#,0}" HeaderText="<%$Resources:CarInsurance,CTPL%>"
                                    SortExpression="TotalCMI" />
                                <asp:BoundField DataField="Premium" DataFormatString="{0:#,0}" HeaderText="<%$Resources:General,PremiumAmount%>"
                                    SortExpression="Premium" />
                                <asp:BoundField DataField="Info5" HeaderText="<%$Resources:CarInsuranceResultPage,FloodCover%>"
                                    SortExpression="Info5" />
                                <asp:BoundField DataField="NameDriverStatus" HeaderText="<%$Resources:NonGG,NamedDrivers%>"
                                    SortExpression="NameDriverStatus" />
                                <asp:BoundField DataField="SelectedStatus" HeaderText="<%$Resources:CarInsurance,SelectStatus%>"
                                    SortExpression="SelectedStatus" ItemStyle-Font-Bold="true">
                                    <ItemStyle Font-Bold="True" />
                                </asp:BoundField>
                                <asp:BoundField ItemStyle-Width="50px" DataField="ModifiedDate" DataFormatString="{0:dd/MMM/yyyy hh:mm:ss tt}"
                                    HeaderText="<%$Resources:General,DateTime%>" SortExpression="ModifiedDate" />
                                <asp:TemplateField HeaderText="<%$Resources:CarInsurance,Delete%>">
                                    <ItemTemplate>
                                        <asp:Button runat="server" ID="btnDelete" Text="Delete" CommandName="MyDelete" CommandArgument='<%#Eval("CXBrokerPremiumId")%>'
                                            OnClientClick="return DeletePremiumConfirm();" Width="50px" CssClass="blueB ml10" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:CommandField ShowSelectButton="True" ButtonType="Button" ItemStyle-Width="50px"
                                    ControlStyle-Width="50px" SelectText="<%$Resources:General,Select%>" ControlStyle-CssClass="blueB ml10" />
                            </Columns>
                            <FooterStyle />
                            <PagerStyle />
                            <SelectedRowStyle />
                            <HeaderStyle />
                            <EditRowStyle />
                            <AlternatingRowStyle />
                            <RowStyle />
                        </asp:GridView>
                        <asp:SqlDataSource ID="sqlDsPremiumList" runat="server" ConnectionString="<%$ ConnectionStrings:CX_CRMDBConnectionString %>"
                            SelectCommand="sprocCXBrokerPremiumSelectItemList" SelectCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="txtCarId" Name="CECarId" DefaultValue="0" PropertyName="Text"
                                    Type="Int64" />
                                <asp:Parameter Name="ProductType" DefaultValue="CIN" DbType="String" />
                                <asp:ControlParameter ControlID="lblLangOption" Name="LangOption" DefaultValue="1"
                                    PropertyName="Text" Type="Int16" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                        <asp:HyperLink ID="hplPremiumDownLoad" runat="server" Target="_blank" Text="<%$Resources:CarInsurance,DownloadNonGGPremium%>"
                            Visible="false"></asp:HyperLink>
                        <asp:Label runat="server" Visible="false" Text="" ID="lblSelectedRefNo" />
                        <div class="clear">
                        </div>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel><div style="float: left; padding: 5px 0 5px 0; cursor: hand;">
                <asp:HyperLink runat="server" ID="linkPdf" onclick="return CheckLinkExist(this);" Target="_blank" Text="" Font-Underline="True" Font-Bold="True" ForeColor="#0033CC"></asp:HyperLink>
            </div>
            <div style="float: right; padding: 5px 0 5px 0;">
                <asp:Button ID="btnPremiumDownload" runat="server" Text="<%$Resources:CarInsurance,DownloadNonGGPremium%>"
                    Visible="true" OnClick="btnPremiumDownload_Click" OnClientClick="PremiumDownloadClick();"
                    CssClass="blueB ml10" />
            </div>
            <div class="toggle" id="Div6">
                <div class="title opened" id="opened6">
                    <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
                    <h6>
                        <asp:Label runat="server" Text="<%$Resources:CarInsurance,Edit%>" ID="Label9" />
                    </h6>
                </div>
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                        <div id="divEditDetail" runat="server" visible="true">
                            <table cellpadding="0" cellspacing="0" width="100%" border="0" class="sTable">
                                <tr>
                                    <td colspan="6">
                                        <asp:ValidationSummary runat="server" ValidationGroup="editdetail" ID="ValidationSummary1"
                                            ShowMessageBox="false" ShowSummary="true" ForeColor="Red" Font-Bold="true" HeaderText="Opps.. Please complete all (*) fields." />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <%=GetGlobalResourceObject("CarInsuranceResultPage", "LicensePlate")%>
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtEditLicensePlate" CausesValidation="false" runat="server" MaxLength="50"
                                            Width="200px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvLicensePlate" runat="server" ControlToValidate="txtEditLicensePlate"
                                            Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="editdetail"></asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        <asp:Label runat="server" Text="<%$Resources:CarInsurance,CoverCommencementDate%>"
                                            ID="lblEditCoverCommencementDateCaption" />
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlEditCoverCommencementDate" Width="150px" runat="server" />
                                        Edited Date:
                                        <asp:Label runat="server" ID="lblEditCoverCommencementDate" Font-Bold="true" ForeColor="Red" />
                                        <asp:RequiredFieldValidator ID="rfvEditCoverCommencementDate" ValidationGroup="editdetail"
                                            runat="server" ControlToValidate="ddlEditCoverCommencementDate" ErrorMessage=""
                                            Text="*" /><br />
                                        <asp:Label runat="server" ID="lblEditCoverCommencementDateMessage" Font-Bold="true"
                                            ForeColor="Red" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <%=GetGlobalResourceObject("CarInsurance", "NamedDriver") %>
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlEditNamedDriver" Width="80px" CausesValidation="false" runat="server">
                                            <asp:ListItem Text="0" Value="0" />
                                            <asp:ListItem Text="1" Value="1" />
                                            <asp:ListItem Text="2" Value="2" />
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvEditNameDriver" ValidationGroup="editdetail" runat="server"
                                            ControlToValidate="ddlEditNamedDriver" InitialValue="-1" ErrorMessage="" Text="*" />
                                    </td>
                                    <td><asp:CheckBox runat="server" ID="chkExtComDate" Text="<%$Resources:CarInsuranceResultPage,EndDate%>" onclick="DisplayExtComDate(this)" /></td>
                                    <td>:</td>
                                    <td><asp:DropDownList ID="ddlExtComDate" Width="150px" runat="server" /></td>
                                </tr>
                                <tr>
                                    <td>
                                        <%=GetGlobalResourceObject("CarInsuranceResultPage", "HowDoYouKnowUs")%>
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:DropDownList runat="server" ID="ddlHowUKnowUs">
                                            <asp:ListItem Text="<%$Resources:CarInsurance,Select%>" Value="-1"></asp:ListItem>
                                            <asp:ListItem Text="Facebook" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="Google" Value="2"></asp:ListItem>
                                            <asp:ListItem Text="Youtube" Value="3"></asp:ListItem>
                                            <asp:ListItem Text="IG" Value="4"></asp:ListItem>
                                            <asp:ListItem Text="Google+" Value="5"></asp:ListItem>
                                            <asp:ListItem Text="<%$Resources:CarInsuranceResultPage,Friend%>" Value="6"></asp:ListItem>
                                            <asp:ListItem Text="<%$Resources:CarInsuranceResultPage,Others%>" Value="7"></asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvEditHowUKnowUs" ValidationGroup="editdetail" runat="server"
                                            ControlToValidate="ddlHowUKnowUs" InitialValue="-1" ErrorMessage="" Text="*" />
                                    </td>
                                    <td>
                                        <%=GetGlobalResourceObject("CarInsurance", "NCB") %>
                                    </td>
                                    <td>
                                        :
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlEditNCB" Width="80px" CausesValidation="false" runat="server">
                                            <asp:ListItem Text="0" Value="0" />
                                            <asp:ListItem Text="20" Value="20" />
                                            <asp:ListItem Text="30" Value="30" />
                                            <asp:ListItem Text="40" Value="40" />
                                            <asp:ListItem Text="50" Value="50" />
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvEditNCB" ValidationGroup="editdetail" runat="server"
                                            ControlToValidate="ddlEditNCB" InitialValue="-1" ErrorMessage="" Text="*" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25">
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <asp:Button ID="btnEditSubmit" OnClientClick="javascript:return SubmitEditDetailConfirm();"
                                            runat="server" Text="<%$Resources:General,Save%>" ValidationGroup="editdetail"
                                            OnClick="btnEditSubmit_Click" Width="150px" Height="30px" Font-Bold="true" CssClass="blueB ml10" />
                                        <asp:Label ID="lblEditDetailMessage" runat="server" ForeColor="Green" Font-Bold="true"></asp:Label>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="chkConfirmEmail" Font-Bold="true" Text="Send Quotation" runat="server"
                                            OnCheckedChanged="chkConfirmEmail_CheckedChanged" AutoPostBack="True" />
                                        <asp:TextBox ID="txtConfirmEmail" runat="server" Width="180px" />
                                        <asp:CheckBox runat="server" ID="chkIsPromotion" Checked="true" Text="&nbsp;Promotion" Font-Bold="true" ForeColor="Red" />
                                        <asp:RequiredFieldValidator ID="rfvConfirmEmail" Enabled="true" Display="Dynamic"
                                            ValidationGroup="sendquotation" runat="server" ControlToValidate="txtConfirmEmail"
                                            ErrorMessage="*" Text="*" />
                                        <asp:RegularExpressionValidator ID="revConfirmEmail" Enabled="true" Display="Dynamic"
                                            ValidationGroup="sendquotation" runat="server" ControlToValidate="txtConfirmEmail"
                                            ErrorMessage="*" Text="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                                    </td>
                                    <td>
                                        <asp:CheckBox runat="server" ID="chkIsEN" Text="&nbsp;English" Font-Bold="true" ForeColor="Red" />
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnSendQuotation" runat="server" Text="<%$Resources:General,ConfirmEmailAndSendQuotation%>"
                                            Visible="true" OnClick="btnSendQuotation_Click" CssClass="blueB ml10" OnClientClick="return SendQuotationConfirm();" />&nbsp;<asp:Button
                                                ID="btnSendOrderConfirmation" runat="server" Text="<%$Resources:General,SendOrderConfirmation%>"
                                                Visible="true" OnClick="btnSendOrderConfirmation_Click" CssClass="blueB ml10"
                                                OnClientClick="return SendQuotationConfirm();" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="6">
                                        <asp:Label runat="server" Font-Bold="true" ForeColor="Red" ID="lblSendQuotationMessage" />
                                        <asp:Label runat="server" Font-Bold="true" ForeColor="Red" ID="lblSendOrderConfirmationMessage" />
                                        <asp:Button ID="btnNewPremium" runat="server" Text="<%$Resources:General,NewQuotation%>"
                                            CausesValidation="false" Visible="false" OnClick="btnNewPremium_Click" CssClass="blueB ml10"
                                            OnClientClick="javascript:if(!ConfirmNew()) return false;" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel><asp:Label runat="server" Font-Bold="true" ForeColor="Red" ID="lblSendFirstOrderConfirmationMessage"></asp:Label><asp:HiddenField ID="hidFirstPdfFile" runat="server" /><asp:HiddenField ID="hidFirstPdfDate" runat="server" /><asp:Button ID="btnShowFirstOrderConfirmation" runat="server" Text="Open PDF" Visible="false" OnClick="btnShowFirstOrderConfirmation_Click" CssClass="blueB ml10" />
            </div>
            <div class="toggle">
                <div class="title opened" id="opened2">
                    <img src="../../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
                    <h6>
                        <asp:Label runat="server" Text="<%$Resources:CarInsurance,NonGGPackages%>" ID="Label8" />
                        <asp:Label runat="server" Text="" ID="lblRenewalStatusMessage" /><a id="aQuote"></a>
                    </h6>
                </div>
                <div class="widgets">
                    <div class="form">
                        <fieldset class="step">
                            <asp:UpdatePanel ID="uplCXBrokerPremium" runat="server">
                                <ContentTemplate>
                                    <div style="display: none;">
                                        <asp:TextBox runat="server" ID="txtPremiumId" Text="0"></asp:TextBox>
                                    </div>
                                    <div>
                                        <asp:ValidationSummary runat="server" ValidationGroup="premium" ID="valPremium" ShowMessageBox="false"
                                            ShowSummary="true" ForeColor="Red" Font-Bold="true" HeaderText="Opps.. Please complete all (*) fields." />
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div id="divCXBrokerPremium" runat="server" visible="false">
                                        <div class="form">
                                            <div id="divOne" class="oneTwo">
                                                <div class="toggle">
                                                    <table cellpadding="0" cellspacing="0" width="100%" border="0" class="sTable">
                                                        <tr>
                                                            <td width="180" height="25">
                                                                <%=GetGlobalResourceObject("CarInsurance", "CompanyName")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlBrokerProvider" CausesValidation="false" runat="server"
                                                                    OnSelectedIndexChanged="ddlBrokerProvider_SelectedIndexChanged" AutoPostBack="True">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvBrokerProvider" ValidationGroup="premium" runat="server"
                                                                    ControlToValidate="ddlBrokerProvider" InitialValue="-1" ErrorMessage="" Text="*" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsurance", "InsuranceType")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlBrokerCoverType" runat="server" OnSelectedIndexChanged="ddlBrokerCoverType_SelectedIndexChanged"
                                                                    AutoPostBack="True" CausesValidation="true">
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvBrokerCoverType" ValidationGroup="premium" runat="server"
                                                                    ControlToValidate="ddlBrokerCoverType" InitialValue="-1" ErrorMessage="" Text="*" />&nbsp;<asp:CheckBox runat="server" ID="chkMile" Enabled="false" Text="<%$ Resources:CarInsurance,Mile%>" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsurance", "GarageType")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlGarageType" runat="server" CausesValidation="false" AutoPostBack="true"
                                                                    OnSelectedIndexChanged="ddlGarageType_SelectedIndexChanged">
                                                                    <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>" />
                                                                    <asp:ListItem Value="1" Text="<%$ Resources:CarInsurance,Garage_Authorized%>" />
                                                                    <asp:ListItem Value="2" Text="<%$ Resources:CarInsurance,Garage_Dealer%>" />
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvWorkShop" runat="server" ControlToValidate="ddlGarageType"
                                                                    Display="Dynamic" ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                GG.COM Discount
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <table cellpadding="10">
                                                                    <tr>
                                                                        <td>
                                                                            <asp:DropDownList CausesValidation="true" runat="server" ID="ddlDiscountPercentage"
                                                                                AutoPostBack="True" OnSelectedIndexChanged="ddlDiscountPercentage_SelectedIndexChanged">
                                                                                <asp:ListItem Text="0 %" Value="0" />
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label runat="server" Font-Bold="true" ID="lblDiscountAmount" Text="0" />
                                                                            <asp:RequiredFieldValidator ID="rfvDiscountPercentage" runat="server" ControlToValidate="ddlDiscountPercentage"
                                                                                ErrorMessage="*" Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                                        </td>
                                                                        <td>
                                                                            Teledirect's Employee?
                                                                        </td>
                                                                        <td>
                                                                            <asp:CheckBox ID="chkCompanyStaff" Checked="false" runat="server" OnCheckedChanged="chkCompanyStaff_CheckedChanged"
                                                                                AutoPostBack="true" />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("NonGG", "NetPremium")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblNetPremium" Font-Bold="true" runat="server" Width="120px" />
                                                                <asp:TextBox ID="txtNetPremium" CausesValidation="false" ReadOnly="true" Visible="false"
                                                                    runat="server" MaxLength="20" Width="120px"></asp:TextBox><asp:RequiredFieldValidator
                                                                        ID="rfvNetPremium" runat="server" ControlToValidate="txtNetPremium" ErrorMessage="Premium."
                                                                        Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                                            ID="revNetPremium" runat="server" ControlToValidate="txtNetPremium" ValidationGroup="premium"
                                                                            ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("NonGG", "Duty")%>
                                                                (0.4%)
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblTax" Font-Bold="true" runat="server" Width="200px" />
                                                                <asp:TextBox ID="txtTax" CausesValidation="false" runat="server" ReadOnly="true"
                                                                    Visible="false" Text="" MaxLength="20" Width="200px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvTax" runat="server" ControlToValidate="txtTax"
                                                                    Display="Dynamic" ErrorMessage="Package" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("NonGG", "VAT")%>
                                                                (7%)
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblVAT" runat="server" Font-Bold="true" MaxLength="20" Width="200px" />
                                                                <asp:TextBox ID="txtVAT" runat="server" ReadOnly="true" Visible="false" Text="" MaxLength="20"
                                                                    Width="200px"></asp:TextBox><asp:RequiredFieldValidator ID="rfvVAT" runat="server"
                                                                        ControlToValidate="txtVAT" Display="Dynamic" ErrorMessage="Package" Text="*"
                                                                        ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("NonGG", "GrossPremium")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtGrossPremium" runat="server" MaxLength="12" Width="120px" AutoPostBack="True"
                                                                    CausesValidation="true" OnTextChanged="txtGrossPremium_TextChanged"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvGrossPremium" runat="server" ControlToValidate="txtGrossPremium"
                                                                    ErrorMessage="" Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="revGrossPremium" runat="server" ControlToValidate="txtGrossPremium"
                                                                    ValidationGroup="premium" ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("NonGG", "VMIGrossPremiumAfterDiscount")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblAnnualPremium" runat="server" Width="120px" />
                                                                <asp:TextBox ID="txtAnnualPremium" CausesValidation="false" ReadOnly="true" runat="server"
                                                                    MaxLength="20" Width="120px" Visible="false"></asp:TextBox><asp:RequiredFieldValidator
                                                                        ID="rfvAnnualPremium" runat="server" ControlToValidate="txtAnnualPremium" ErrorMessage="Premium."
                                                                        Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                                            ID="revAnnualPremium" runat="server" ControlToValidate="txtAnnualPremium" ValidationGroup="premium"
                                                                            ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("NonGG", "CTPLCMIGP")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlVehicleBodyType" CausesValidation="true" Enabled="true"
                                                                    OnSelectedIndexChanged="ddlVehicleBodyType_SelectedIndexChanged" runat="server"
                                                                    AutoPostBack="true">
                                                                    <asp:ListItem Text="<%$Resources:CarInsurance,Sedan%>" Value="1" Selected="True" />
                                                                    <asp:ListItem Text="<%$Resources:CarInsurance,Pickup%>" Value="2" />
                                                                    <asp:ListItem Text="<%$Resources:General,Others%>" Value="99" />
                                                                </asp:DropDownList>
                                                                <asp:TextBox ID="txtCTPL" CausesValidation="true" ReadOnly="false" runat="server"
                                                                    Text="645.21" MaxLength="20" Width="50px" AutoPostBack="True" OnTextChanged="txtCTPL_TextChanged"></asp:TextBox>
                                                                <asp:CheckBox ID="chkCTPL" CausesValidation="false" runat="server" Checked="true"
                                                                    AutoPostBack="True" OnCheckedChanged="chkCTPL_CheckedChanged" />
                                                                <asp:RequiredFieldValidator ID="rfvCTPL" runat="server" ControlToValidate="txtCTPL"
                                                                    Display="Dynamic" ErrorMessage="Package" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="revCTPL" runat="server" ControlToValidate="txtCTPL"
                                                                    ValidationGroup="premium" ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <b style="color: Red;">Tesco</b>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtTescoAmount" CausesValidation="false" runat="server" Text="0"
                                                                    ReadOnly="true" Width="50px" ForeColor="Red" Font-Bold="true"></asp:TextBox>&nbsp;<asp:CheckBox runat="server" ID="chkGetTesco" Text=" ลด Tesco" onclick="GetTescoVoucher(this);" />
                                                                <asp:DropDownList ID="ddlTesco" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlTesco_SelectedIndexChanged"
                                                                    ForeColor="Red" Visible="false">
                                                                    <asp:ListItem Value="0" Text="N/A" />
                                                                    <asp:ListItem Value="1" Text="Voucher" />
                                                                    <asp:ListItem Value="2" Text="Cash" />
                                                                </asp:DropDownList>
                                                                <asp:Label ID="lblTesco" runat="server" ForeColor="Red" Font-Bold="true" Visible="false"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("NonGG", "TotalGPNoDiscount")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtFinalAnnualPremiumNoDisc" CausesValidation="false" runat="server"
                                                                    MaxLength="20" Width="120px" Visible="true" ReadOnly="true" Font-Bold="true"
                                                                    Font-Size="Large" AutoPostBack="True" OnTextChanged="txtFinalAnnualPremiumNoDisc_TextChanged"></asp:TextBox>
                                                                <asp:CheckBox ID="chkChangePremium" CausesValidation="false" runat="server" Checked="false"
                                                                    AutoPostBack="True" OnCheckedChanged="chkChangePremium_CheckedChanged" Text=" Edit" />
                                                                <asp:RequiredFieldValidator ID="rfvFinalAnnualPremiumNoDisc" runat="server" ControlToValidate="txtFinalAnnualPremiumNoDisc"
                                                                    ErrorMessage="*" Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                                        ID="revFinalAnnualPremiumNoDisc" runat="server" ControlToValidate="txtFinalAnnualPremiumNoDisc"
                                                                        ValidationGroup="premium" ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                                <div style="display: none;"><asp:HiddenField runat="server" ID="hidFinalAnnualPremium" />
                                                                    <asp:Label ID="lblB4EditFinalAnnualPremiumNoDisc" runat="server" Text="0"></asp:Label>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("NonGG", "TotalGPWithDiscount")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtFinalAnnualPremium" CausesValidation="false" runat="server" MaxLength="20"
                                                                    Width="120px" Visible="true" ReadOnly="true" Font-Bold="true" Font-Size="Large"
                                                                    AutoPostBack="True" OnTextChanged="txtFinalAnnualPremium_TextChanged"></asp:TextBox><asp:RequiredFieldValidator
                                                                        ID="rfvFinalAnnualPremium" runat="server" ControlToValidate="txtFinalAnnualPremium"
                                                                        ErrorMessage="*" Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                                            ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtFinalAnnualPremium"
                                                                            ValidationGroup="premium" ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                                                                <div style="display: none;">
                                                                    <asp:Label ID="lblB4EditFinalAnnualPremium" runat="server" Text="0"></asp:Label>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsurance", "PaymentMode")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlPaymentMode" runat="server" Width="200px">
                                                                    <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>"></asp:ListItem>
                                                                    <asp:ListItem Value="CR" Text="Credit Card"></asp:ListItem>
                                                                    <asp:ListItem Value="TR" Text="โอนเงิน"></asp:ListItem>
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvPaymentMode" ControlToValidate="ddlPaymentMode"
                                                                    ErrorMessage="" ValidationGroup="premium" InitialValue="-1" Text="*" runat="server"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsurance", "PaymentOption")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlPaymentOption" runat="server" Width="200px">
                                                                    <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>"></asp:ListItem>
                                                                    <asp:ListItem Value="IP" Text="<%$ Resources:CarInsurance,Installment%>"></asp:ListItem>
                                                                    <asp:ListItem Value="FP" Text="<%$ Resources:CarInsurance,AnnualPayment%>"></asp:ListItem>
                                                                </asp:DropDownList>
                                                                <asp:RequiredFieldValidator ID="rfvPaymentOption" ControlToValidate="ddlPaymentOption"
                                                                    ErrorMessage="" ValidationGroup="premium" InitialValue="-1" Text="*" runat="server"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <!-- Monthly Installment -- start -->
                                                        <tr>
                                                            <td colspan="3">
                                                                <h6>
                                                                    <%=GetGlobalResourceObject("CarInsurance", "MonthlyInstallment")%></h6>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="200" height="25">
                                                                <%=GetGlobalResourceObject("CarInsurance", "GGCOMDiscount")%>
                                                            </td>
                                                            <td width="5">
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlGGDiscount" CausesValidation="false" runat="server" Enabled="false">
                                                                </asp:DropDownList>
                                                                &nbsp;&nbsp;
                                                                <asp:Label ID="lblNoDiscount" runat="server" Visible="false"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <%=GetGlobalResourceObject("CarInsurance", "CreditCardAllowed")%>
                                                            </td>
                                                            <td width="5">
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblCreditCardAllowed" runat="server" Visible="false"></asp:Label>
                                                                <asp:DropDownList ID="ddlCreditCard" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCreditCard_SelectedIndexChanged">
                                                                    <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>" />
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="200" height="25">
                                                                <%=GetGlobalResourceObject("CarInsurance", "NoofInstallments")%>
                                                            </td>
                                                            <td width="5">
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlNoofInstallments" CausesValidation="false" runat="server"
                                                                    OnSelectedIndexChanged="NoofInstallments_SelectedIndexChanged" AutoPostBack="True">
                                                                </asp:DropDownList>
                                                                &nbsp;&nbsp;
                                                                <asp:Label ID="lblCHINSMessage" runat="server" ForeColor="Red" Font-Bold="true"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="200" height="25">
                                                                <%=GetGlobalResourceObject("CarInsurance", "Interest")%>
                                                            </td>
                                                            <td width="5">
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblInterest" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="200" height="25">
                                                                <strong>
                                                                    <%=GetGlobalResourceObject("NonGG", "TotalGPNoDiscount")%></strong>
                                                            </td>
                                                            <td width="5">
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblTotalGrossPremiumWOD" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="200" height="25">
                                                                <asp:Label ID="lblTitleFirstInstallWOD" runat="server"></asp:Label>
                                                                &nbsp;&nbsp;&nbsp;
                                                                <asp:Label ID="lblFirstInstallmentWODdesc" runat="server" ForeColor="Red"></asp:Label>
                                                            </td>
                                                            <td width="5">
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblFirstInstallmentWOD" runat="server" ForeColor="Red"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="200" height="25">
                                                                <asp:Label ID="lblTitleLastInstallWOD" runat="server"></asp:Label>&nbsp;&nbsp;&nbsp;
                                                                <asp:Label ID="lblTitleLastInstallWODDesc" runat="server" ForeColor="Red"></asp:Label>
                                                            </td>
                                                            <td width="5">
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblLastInstallmentWOD" runat="server" ForeColor="Red"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="200" height="25">
                                                                <strong>
                                                                    <%=GetGlobalResourceObject("NonGG", "TotalGPWithDiscount")%></strong>
                                                            </td>
                                                            <td width="5">
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblTotalGrossPremiumWD" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="200" height="25">
                                                                <asp:Label ID="lblTitleFirstInstallWD" runat="server"></asp:Label>
                                                                &nbsp;&nbsp;&nbsp;
                                                                <asp:Label ID="lblFirstInstallmentWDdesc" runat="server" ForeColor="green"></asp:Label>
                                                            </td>
                                                            <td width="5">
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblFirstInstallmentWD" runat="server" ForeColor="green"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="200" height="25">
                                                                <asp:Label ID="lblTitleLastInstallWD" runat="server"></asp:Label>&nbsp;&nbsp;&nbsp;
                                                                <asp:Label ID="lblTitleLastInstallWDDesc" runat="server" ForeColor="green"></asp:Label>
                                                            </td>
                                                            <td width="5">
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblLastInstallmentWD" runat="server" ForeColor="green"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <!-- Monthly Installment -- end -->
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("General", "Comments")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtPremiumChangeComments" CausesValidation="false" runat="server"
                                                                    MaxLength="50" Width="220px" Visible="true" TextMode="MultiLine" Rows="3" Columns="50" />
                                                                <asp:RequiredFieldValidator ID="rfvPremiumChangeComments" Enabled="false" runat="server"
                                                                    ControlToValidate="txtPremiumChangeComments" ErrorMessage="*" Text="*" Display="Dynamic"
                                                                    ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("General", "Agent")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList runat="server" ID="ddlAgentbyAdmin" Width="250px">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("General", "Status")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkSelected" runat="server" Text="<%$Resources:General,SelectThisPremium%>" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="btnNewPremiumTwo" runat="server" Text="<%$Resources:General,NewQuotation%>"
                                                                    CausesValidation="false" Visible="true" OnClick="btnNewPremium_Click" CssClass="blueB ml10"
                                                                    OnClientClick="return ConfirmNew();" />
                                                            </td>
                                                            <td>
                                                                &nbsp;
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="btnSubmitPremium" OnClientClick="return SubmitPremiumConfirm();"
                                                                    runat="server" Text="<%$Resources:CarInsurance,SubmitPremium%>" ValidationGroup="premium"
                                                                    OnClick="btnSubmitPremium_Click" Width="130px" Height="30px" Font-Bold="true"
                                                                    CssClass="blueB ml10" />
                                                                <asp:Label ID="lblTESCO200Two" runat="server" Font-Bold="true" ForeColor="Green"
                                                                    Font-Size="Large" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="3">
                                                                <asp:Label ID="lblPremiumMessage" runat="server" ForeColor="Green" Font-Bold="true"></asp:Label>
                                                                <asp:Label ID="lblPremiumError" runat="server" ForeColor="Red" Font-Bold="true"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>
                                            <div id="divTwo" class="oneTwo">
                                                <div class="toggle">
                                                    <table cellpadding="0" cellspacing="0" width="100%" border="0" class="sTable">
                                                        <tr>
                                                            <td width="200" height="25">
                                                                <%=GetGlobalResourceObject("General", "ReferenceNo")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblQRefNo" runat="server" Font-Bold="true" Font-Size="Medium" Text="" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "LicensePlate")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:Label runat="server" ID="lblEditLicensePlate" />
                                                                <asp:RequiredFieldValidator ID="rfvEditLicensePlate" runat="server" ControlToValidate="txtEditLicensePlate"
                                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25" colspan="3">
                                                                <%=GetGlobalResourceObject("CarInsurance", "AccessaryAndModificationAmount")%>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25" colspan="3">
                                                                <asp:TextBox ID="txtAccModCost" CausesValidation="false" runat="server" Text="0"
                                                                    MaxLength="50" Width="300px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvAccModCost" runat="server" ControlToValidate="txtAccModCost"
                                                                    Display="Dynamic" ErrorMessage="Package" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "TPBIP")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtTPBIP" CausesValidation="false" runat="server" Text="1,000,000"
                                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvTPBIP" runat="server" ControlToValidate="txtTPBIP"
                                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "TPBIA")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtTPBIA" CausesValidation="false" runat="server" Text="10,000,000"
                                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTPBIA"
                                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "TPPD")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtTPPD" CausesValidation="false" runat="server" Text="5,000,000"
                                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvTPPD" runat="server" ControlToValidate="txtTPPD"
                                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "OwnDamage")%><br />
                                                                /
                                                                <asp:Label runat="server" Text="<%$Resources:CarInsurance,SumInsured%>" ID="Label13" />
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtOwnDamage" CausesValidation="false" runat="server" Text="20,000"
                                                                    MaxLength="20" Width="200px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvOwnDamage" runat="server" ControlToValidate="txtOwnDamage"
                                                                    Display="Dynamic" ErrorMessage="Package" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "FireTheft")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtFireTheft" CausesValidation="false" runat="server" Text="2,200,000"
                                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvFireTheft" runat="server" ControlToValidate="txtFireTheft"
                                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "FloodCover")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtFloodCoverAmount" CausesValidation="false" runat="server" Text="0"
                                                                    MaxLength="20" Width="200px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvFloodCoverAmount" runat="server" ControlToValidate="txtFloodCoverAmount"
                                                                    Display="Dynamic" ErrorMessage="Package" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "DEC")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtDeductible" CausesValidation="false" runat="server" MaxLength="50"
                                                                    Width="200px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvDeductible" runat="server" ControlToValidate="txtDeductible"
                                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                                <asp:CustomValidator ControlToValidate="txtDeductible" Display="Dynamic" ValidationGroup="premium"
                                                                    ID="csvDeductibleValid" runat="server" ErrorMessage="<%$Resources:General,DeductableValid%>"
                                                                    Text="" OnServerValidate="csvDeductibleValid_ServerValidate"></asp:CustomValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "PA")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtPA" CausesValidation="false" runat="server" Text="200,000(12)"
                                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvPA" runat="server" ControlToValidate="txtPA" Display="Dynamic"
                                                                    ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "MED")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtMED" CausesValidation="false" runat="server" Text="200,000(12)"
                                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvMED" runat="server" ControlToValidate="txtPA"
                                                                    Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("CarInsuranceResultPage", "BailBond")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtBailBond" CausesValidation="false" runat="server" Text="250,000"
                                                                    MaxLength="50" Width="200px"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="rfvBailBond" runat="server" ControlToValidate="txtPA"
                                                                    Display="Dynamic" ErrorMessage="Package" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="25">
                                                                <%=GetGlobalResourceObject("NonGG", "NamedDrivers")%>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <asp:CheckBox ID="chkNamedDriver" Checked="false" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="btnGoToNonGGPendingApp" runat="server" Text="<%$Resources:General,NonGGPackageApplication%>"
                                                                    Visible="true" CssClass="blueB ml10" OnClick="btnGoToNonGGPendingApp_Click" />
                                                            </td>
                                                            <td>
                                                                &nbsp;
                                                            </td>
                                                            <td>
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </fieldset>
                    </div>
                </div>
            </div>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <div style="display: none">
                        <asp:TextBox runat="server" ReadOnly="true" ID="txtCXCRMId" />
                        <asp:TextBox runat="server" ReadOnly="true" ID="txtCustomerId" />
                        <asp:TextBox runat="server" ReadOnly="true" ID="txtCarId" />
                        <asp:TextBox runat="server" ReadOnly="true" ID="txtCarPolicyId" />
                        <asp:TextBox runat="server" ReadOnly="true" ID="txtCarResultId" />
                        <asp:TextBox runat="server" ReadOnly="true" ID="txtServerPath" />
                        <asp:TextBox runat="server" ReadOnly="true" ID="txtAgentId" />
                        <asp:TextBox runat="server" ReadOnly="true" ID="txtCallMeId" />
                        <asp:TextBox runat="server" ReadOnly="true" ID="txtCallBackCount" />
                        <asp:TextBox runat="server" ID="txtCallStatusId" Text="0"></asp:TextBox>
                        <asp:TextBox runat="server" ID="txtContactNo" Text="0"></asp:TextBox>
                        <asp:TextBox ID="txtUserTypeId" runat="server" Text="400"></asp:TextBox>
                        <asp:TextBox ID="txtGG" runat="server" Text="PROVIDER"></asp:TextBox>
                        <asp:TextBox ID="txtNoofPayment" runat="server" Text="0"></asp:TextBox>
                        <asp:TextBox ID="txtPromotion" runat="server" Text=""></asp:TextBox>
                    </div>
                    <div id="divCallStatus" class="toggle" runat="server" visible="false">
                        <div class="title opened" id="opened5">
                            <img src="../../images/icons/dark/1st.png" alt="" class="titleIcon" />
                            <h6>
                                <asp:Label ID="lblLastCallStatusCaption" runat="server" Text="<%$Resources:General,LastCallStatus%>" />
                                <asp:Label ID="lblLastCallStatusMessage" runat="server" Text="" ForeColor="Red" />
                            </h6>
                        </div>
                        <div class="form">
                            <fieldset class="step">
                                <div class="formRow">
                                    <asp:Label runat="server" ID="Label6" Text="<%$Resources:General,FinishCall%>" />
                                    <div class="formRight">
                                        <asp:RadioButton AutoPostBack="true" ID="rdoCallNotBuy" Text="<%$Resources:General,NotBuy%>"
                                            GroupName="calltype" runat="server" OnCheckedChanged="rdoCallFinish_CheckedChanged" />
                                        <asp:RadioButton AutoPostBack="true" ID="rdoCallFinish" Text="<%$Resources:General,Buy%>"
                                            GroupName="calltype" runat="server" OnCheckedChanged="rdoCallFinish_CheckedChanged" />
                                        <asp:RadioButton AutoPostBack="true" ID="rdoCallBack" Text="<%$Resources:General,Callback%>"
                                            GroupName="calltype" runat="server" OnCheckedChanged="rdoCallFinish_CheckedChanged" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="formRow">
                                    <asp:Label runat="server" ID="lblStatusCaption" Text="<%$Resources:General,Status%>" />
                                    <div class="formRight">
                                        <asp:DropDownList ID="ddlCIMainCallStatus" runat="server" OnSelectedIndexChanged="ddlCIMainCallStatus_SelectedIndexChanged"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvCIMainCallStatus" Enabled="true" Display="Dynamic"
                                            ValidationGroup="callstatus" runat="server" ControlToValidate="ddlCIMainCallStatus"
                                            InitialValue="-1" Text="*" ErrorMessage="Select main call status type." />
                                        <asp:DropDownList ID="ddlCICallStatus" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlCICallStatus_SelectedIndexChanged">
                                            <asp:ListItem Text="Select" Value="-1" />
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvCICallStatus" Enabled="true" Display="Dynamic"
                                            ValidationGroup="callstatus" runat="server" ControlToValidate="ddlCICallStatus"
                                            InitialValue="-1" ErrorMessage="Select call status type." Text="*" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="formRow" runat="server" id="trCallBack1" visible="false">
                                    <asp:Label runat="server" ID="lblCallBackDateTime" Text="<%$Resources:General,DateTime%>" />
                                    <div class="formRight">
                                        <asp:TextBox runat="server" ID="txtTargetDate" Width="100px" MaxLength="20"></asp:TextBox>
                                        <asp:CalendarExtender ID="cexTargetDate" runat="server" TargetControlID="txtTargetDate"
                                            PopupButtonID="imgTargetDate" Animated="true" PopupPosition="TopLeft" DaysModeTitleFormat="dd-MMM-yyyy"
                                            Format="dd-MMM-yyyy">
                                        </asp:CalendarExtender>
                                        <span runat="server" id="spanTimeDrowdown">
                                            <asp:DropDownList ID="ddlTHour" runat="server">
                                                <asp:ListItem Text="hh" Value="-1" />
                                                <asp:ListItem Text="08" Value="08" />
                                                <asp:ListItem Text="09" Value="09" />
                                                <asp:ListItem Text="10" Value="10" />
                                                <asp:ListItem Text="11" Value="11" />
                                                <asp:ListItem Text="12" Value="12" />
                                                <asp:ListItem Text="13" Value="13" />
                                                <asp:ListItem Text="14" Value="14" />
                                                <asp:ListItem Text="15" Value="15" />
                                                <asp:ListItem Text="16" Value="16" />
                                                <asp:ListItem Text="17" Value="17" />
                                                <asp:ListItem Text="18" Value="18" />
                                                <asp:ListItem Text="19" Value="19" />
                                            </asp:DropDownList>
                                            :
                                            <asp:DropDownList ID="ddlTMin" runat="server">
                                                <asp:ListItem Text="mm" Value="-1" />
                                                <asp:ListItem Text="00" Value="00" />
                                                <asp:ListItem Text="10" Value="10" />
                                                <asp:ListItem Text="20" Value="20" />
                                                <asp:ListItem Text="30" Value="30" />
                                                <asp:ListItem Text="40" Value="40" />
                                                <asp:ListItem Text="50" Value="50" />
                                            </asp:DropDownList>
                                        </span><a href="../../user/MyCalendar.aspx" class='iframe'>
                                            <img src="../../images/icon/Calendar_scheduleHS.png" title="My Calendar" /></a>
                                        <asp:CustomValidator ID="csvTargetDate" runat="server" ValidationGroup="callstatus"
                                            ControlToValidate="txtTargetDate" ErrorMessage="Invalid callback date time."
                                            OnServerValidate="csvTargetDate_ServerValidate">*</asp:CustomValidator>
                                        <asp:TextBox runat="server" Visible="false" ID="txtCallBackDateTime" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="formRow" id="trCallBack2" runat="server" visible="false">
                                    <asp:Label runat="server" ID="Label4" Text="<%$Resources:General,ToWho%>" />
                                    <div class="formRight">
                                        <asp:DropDownList ID="ddlCBAgentList" runat="server">
                                            <asp:ListItem Text="Agent 1" Value="201" />
                                            <asp:ListItem Text="Agent 2" Value="202" />
                                            <asp:ListItem Text="Agent 3" Value="203" />
                                            <asp:ListItem Text="Agent 4" Value="204" />
                                            <asp:ListItem Text="Agent 5" Value="205" />
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvCBAgentList" Enabled="true" Display="Dynamic"
                                            ValidationGroup="callstatus" runat="server" ControlToValidate="ddlCBAgentList"
                                            ErrorMessage="Select call back agent." Text="*" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <asp:Panel runat="server" ID="pnlCallMeStatus" Visible="false">
                                    <div class="formRow">
                                        <label>
                                            Call Me Comments</label>
                                        <div class="formRight">
                                            <asp:TextBox runat="server" TextMode="MultiLine" Visible="false" Height="100px" ID="txtCICallMeRemark"
                                                ReadOnly="true" />
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                </asp:Panel>
                                <div class="formRow">
                                    <asp:Label runat="server" ID="lblCommentsCaption" Text="<%$Resources:General,Comments%>" />
                                    <div class="formRight">
                                        <asp:TextBox runat="server" TextMode="MultiLine" Height="100px" ID="txtCallStatus" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <asp:Label runat="server" ID="lblCallStatusMessage" Font-Bold="true" ForeColor="Red" />
                                <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                    <ProgressTemplate>
                                        <asp:Label runat="server" ID="lblProcessingMessage" Text="<%$Resources:General,ProcessingPlsWait%>" /></ProgressTemplate>
                                </asp:UpdateProgress>
                            </fieldset>
                            <div class="wizButtons">
                                <span class="wNavButtons">
                                    <asp:Button runat="server" ValidationGroup="callstatus" ID="btnCallStatus" Text="<%$Resources:General,Save%>"
                                        OnClick="btnCallStatus_Click" OnClientClick="return SubmitConfirm();" CssClass="blueB ml10" />
                                    <asp:Button runat="server" CausesValidation="false" ID="btnNext" Text="<%$Resources:General,NewCall%>"
                                        Visible="false" OnClick="btnNext_Click" CssClass="blueB ml10" OnClientClick="return NextConfirm();" />
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <asp:ValidationSummary runat="server" ValidationGroup="callstatus" ID="vsCallStatus"
                            ShowMessageBox="true" ShowSummary="false" />
                        <div class="clear">
                        </div>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>

    <script type="text/javascript">
        function DisplayExtComDate(obj) {
            if (obj.checked) {
                document.getElementById('<%= ddlExtComDate.ClientID%>').style.visibility = 'visible';
            }
            else {
                document.getElementById('<%= ddlExtComDate.ClientID%>').style.visibility = 'hidden';
            }
        }
        
        function OpenPremiumDownload(refid) {
            document.getElementById('<%= txtCarId.ClientID%>').value = refid;

            var winl = (screen.width - 800) / 2;
            var wint = (screen.height - 500) / 2;
            var settings = 'height=500,';
            settings += 'width=800,';
            settings += 'top=' + wint + ',';
            settings += 'left=' + winl + ',';
            settings += 'scrollbars=yes,';
            settings += 'resizable=No';
            window.open('PremiumDownload.aspx?carid=' + refid, 'NEWWIN', settings);
        }

        var intTimer = setInterval("StartTimer()", 1000);

        function StartTimer() {
            var txtMin = document.getElementById('<%=txtMinute.ClientID%>');
            var txtSecond = document.getElementById('<%=txtSecond.ClientID%>');

            var intMin = parseInt(txtMin.value);
            var intSecond = parseInt(txtSecond.value) + 1;

            var strMin = '';
            var strSecond = '';

            if (intSecond == 60) {
                intSecond = 0;
                intMin = intMin + 1
            }

            if (intMin == 60 && intSecond == 1) {
                alert("Call duration is now over 60 minutes.");

            }

            txtMin.value = intMin.toString();
            txtSecond.value = intSecond.toString();

            if (intMin > 9) {
                strMin = intMin.toString();
            }
            else {
                strMin = "0" + intMin.toString();
            }

            if (intSecond > 9) {
                strSecond = intSecond.toString();
            }
            else {
                strSecond = "0" + intSecond.toString();
            }

            var lblCallTimer = document.getElementById('<%=lblCallDurationTimer.ClientID%>');
            if (lblCallTimer != null) {
                lblCallTimer.innerHTML = strMin + " : " + strSecond;
            }
        }

        function GoBackConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('backbutton')) {
                _retVal = window.confirm('<%=GetGlobalResourceObject("CarInsurance", "ConfirmBack")%>?');
            }

            if (_retVal) {
                window.onbeforeunload = null;
            }

            return _retVal;
        }

       function SubmitCustomerNoteConfirm() {
            var _retVal = false;
            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            return _retVal;
       }

        function SubmitConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('callstatus')) {
                _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }
            return _retVal;
        }

        function SubmitEditDetailConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('editdetail')) {
                _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }

            return _retVal;
        }

        function SendQuotationConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('sendquotation')) {
                _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
            }

            return _retVal;
        }

        function SubmitPremiumConfirm() {
            var _retVal = false;
            var txtNoofRecord = document.getElementById('<%=txtNoofPayment.ClientID%>');
            if (Page_ClientValidate('premium')) {
                if (txtNoofRecord == 0) {
                    _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
                }
                else {
                    _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmitwothPayDelete")%>');
                }
            }

            return _retVal;
        }

        function SubmitScriptConfirm() {
            var _retVal = false;
            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');

            return _retVal;
        }

        function NextConfirm() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmNext")%>');

            if (_retVal) {
                window.onbeforeunload = null;
            }

            return _retVal;
        }

        function ConfirmNew() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "NewQuotationConfirm")%>');

            return _retVal;
        }

        function ResetConfirm() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmRESETMessage")%>');

            if (_retVal) {
                window.onbeforeunload = null;
            }

            return _retVal;
        }

        function DeletePremiumConfirm() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("CarInsurance", "ConfirmDeleteNonGGPremium")%>');

            return _retVal;
        }

        function DeleteConfirm() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmDelete")%>');

            return _retVal;
        }

        function ConfirmREQuote() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmReRunQuoteMessage")%>');

            if (_retVal) {
                window.onbeforeunload = null;
            }

            return _retVal;
        }

        function ConfirmNewQuote() {
            var _retVal = false;

            _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmRunNewQuoteMessage")%>');

            if (_retVal) {
                window.onbeforeunload = null;
            }

            return _retVal;
        }

        function PremiumDownloadClick() {
            //window.onbeforeunload = null;
        }

        function ConfirmRenewQuote() {
            var _retVal = false;

            _retVal = confirm('Are you sure to RENEW QUOTE?');

            if (_retVal) {
                window.onbeforeunload = null;
            }

            return _retVal;
        }

        var _ddlDiscountPercentageEnableStatus = false;

        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_initializeRequest(InitializeRequest);
        prm.add_endRequest(EndRequest);
        var postBackElement;
        function InitializeRequest(sender, args) {
            if (prm.get_isInAsyncPostBack())
                args.set_cancel(true);
            postBackElement = args.get_postBackElement();
            OnOffUpdateProgress(true);
        }

        function OnOffUpdateProgress(onOff) {
            if ($get('<%=chkConfirmEmail.ClientID%>') != null) {
                $get('<%=chkConfirmEmail.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnSubmitPremium.ClientID%>') != null) {
                $get('<%=btnSubmitPremium.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnSubmitPremium.ClientID%>') != null) {
                $get('<%=btnSubmitPremium.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnSubmitPremium.ClientID%>') != null) {
                $get('<%=btnSubmitPremium.ClientID%>').disabled = onOff;
            }

            if ($get('<%=chkCTPL.ClientID%>') != null) {
                $get('<%=chkCTPL.ClientID%>').disabled = onOff;
            }

            if ($get('<%=txtGrossPremium.ClientID%>') != null) {
                $get('<%=txtGrossPremium.ClientID%>').disabled = onOff;
            }

            if ($get('<%=txtFinalAnnualPremium.ClientID%>') != null) {
                $get('<%=txtFinalAnnualPremium.ClientID%>').disabled = onOff;
            }

            if ($get('<%=ddlDiscountPercentage.ClientID%>') != null) {
                _ddlDiscountPercentageEnableStatus = $get('<%=ddlDiscountPercentage.ClientID%>').disabled;
                $get('<%=ddlDiscountPercentage.ClientID%>').disabled = onOff;
            }

            if ($get('<%=ddlBrokerCoverType.ClientID%>') != null) {
                $get('<%=ddlBrokerCoverType.ClientID%>').disabled = onOff;
            }

            if ($get('<%=ddlBrokerProvider.ClientID%>') != null) {
                $get('<%=ddlBrokerProvider.ClientID%>').disabled = onOff;
            }

            if ($get('<%=ddlGarageType.ClientID%>') != null) {
                $get('<%=ddlGarageType.ClientID%>').disabled = onOff;
            }

            if ($get('<%=grvPremiumList.ClientID%>') != null) {
                $get('<%=grvPremiumList.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnSendOrderConfirmation.ClientID%>') != null) {
                $get('<%=btnSendOrderConfirmation.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnNewPremium.ClientID%>') != null) {
                $get('<%=btnNewPremium.ClientID%>').disabled = onOff;
            }

            if ($get('<%=ddlVehicleBodyType.ClientID%>') != null) {
                $get('<%=ddlVehicleBodyType.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnNewPremiumTwo.ClientID%>') != null) {
                $get('<%=btnNewPremiumTwo.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnGoToNonGGPendingApp.ClientID%>') != null) {
                $get('<%=btnGoToNonGGPendingApp.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnEditSubmit.ClientID%>') != null) {
                $get('<%=btnEditSubmit.ClientID%>').disabled = onOff;
            }

            if ($get('<%=btnPremiumDownload.ClientID%>') != null) {
                $get('<%=btnPremiumDownload.ClientID%>').disabled = onOff;
            }

            if ($get('<%=lblPremiumMessage.ClientID%>') != null) {
                if (onOff) {
                    $get('<%=lblPremiumMessage.ClientID%>').innerHTML = '<span style=\'color:red;\'>Processing... please wait</span>';
                }
            }

            if ($get('<%=chkCompanyStaff.ClientID%>') != null) {
                $get('<%=chkCompanyStaff.ClientID%>').disabled = onOff;
            }

            if ($get('<%=lblSendQuotationMessage.ClientID%>') != null) {
                if (onOff) {
                    $get('<%=lblSendQuotationMessage.ClientID%>').innerHTML = '<span style=\'color:red;\'>Processing... please wait</span>';
                }
            }
        }
        
        //******************

        function EndRequest(sender, args) {
            OnOffUpdateProgress(false);
            if ($get('<%=ddlDiscountPercentage.ClientID%>') != null) {
                $get('<%=ddlDiscountPercentage.ClientID%>').disabled = _ddlDiscountPercentageEnableStatus;
            }
        }

        window.onbeforeunload = function() {
            return 'ARE YOU SURE?';
        }

        $(document).ready(function() {
            $(".iframe").colorbox({
                iframe: true,
                width: "90%",
                height: "95%"
            });
        });
        
        function QuoteEmail(obj) {
            var objId = obj.id;
            objId = objId.replace('chkEditResult', 'hidCarResultId');
            var resultid = document.getElementById(objId).value
            var oldStr = document.getElementById('<%=hidQuoteEmailId.ClientID%>').value;
            if (obj.checked) {
                if (oldStr.indexOf(resultid) < 0) {
                    var strs = oldStr.split(',');
                    if (strs.length == 4) {
                        obj.checked = false;
                        alert('<%= GetGlobalResourceObject("CarInsuranceResultPage","Email4Quote") %>');
                    }
                    else {
                        if (oldStr.length > 0) oldStr += ",";
                        oldStr += resultid;
                        document.getElementById('<%=hidQuoteEmailId.ClientID%>').value = oldStr;
                    }
                }
            }
            else {
                if (oldStr.indexOf(resultid) >= 0) {
                    var quoteid = '';
                    var strs = oldStr.split(',');
                    var i;
                    for (i = 0; i < strs.length; i++) {
                        if (strs[i] != resultid) {
                            if (quoteid.length > 0) quoteid += ",";
                            quoteid += strs[i];
                        }
                    }
                    document.getElementById('<%=hidQuoteEmailId.ClientID%>').value = quoteid;
                }
            }
        }

        function ClearHidText() {
            document.getElementById('<%=hidQuoteEmailId.ClientID%>').value = "";
        }

        function SendOnlineQuotationConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('sendonlinequotation')) {
                var oldStr = document.getElementById('<%=hidQuoteEmailId.ClientID%>').value;
                if (oldStr == "") {
                    alert('<%= GetGlobalResourceObject("CarInsuranceResultPage","Email4Quote") %>');
                }
                else {
                    _retVal = window.confirm('<%=GetGlobalResourceObject("General", "ConfirmSubmit")%>');
                }
            }
            return _retVal;
        }
        
        // Tabs
        $(function() {
            $("#tabs").tabs();
        });

        function ontabclick(tabval) {
            $('#<%=hidLastTab.ClientID%>').val(tabval);
            if (tabval == "1") {
                document.getElementById("tabs-1").style.display = "";
                document.getElementById("tabs-2").style.display = "none";
            }
            else if (tabval == "2") {
                document.getElementById("tabs-1").style.display = "none";
                document.getElementById("tabs-2").style.display = "";
            }
            else if (tabval == "3") {
                document.getElementById("tabs-1").style.display = "none";
                document.getElementById("tabs-2").style.display = "";
                $('#<%=btnGoToNonGGPendingApp.ClientID%>').click();
            }
        }

        window.onload = function() {
            if ($('#<%=hidLastTab.ClientID%>').val() != '') {
                var tabval = $('#<%=hidLastTab.ClientID%>').val();
                ontabclick(tabval);
            }
        };

        $(document).ready(function() {
            if ($('#<%=hidLastTab.ClientID%>').val() != '') {
                $('#tabs').tabs('select', $('#<%=hidLastTab.ClientID%>').val());
            }
        });

        function GetTescoVoucher(obj) {
            var finalAnnual = document.getElementById('<%=txtFinalAnnualPremium.ClientID%>').value;
            var tescoAmount = document.getElementById('<%=txtTescoAmount.ClientID%>').value;
            
            if (obj.checked) {
                if ((finalAnnual != "" || finalAnnual != "0" || finalAnnual != "0.00") && (tescoAmount != "0" || tescoAmount != "")) {
                    var sumtotal = parseFloat(finalAnnual) - parseFloat(tescoAmount);
                    document.getElementById('<%=txtFinalAnnualPremium.ClientID%>').value = parseFloat(sumtotal).toFixed(2);
                    document.getElementById('<%=hidFinalAnnualPremium.ClientID%>').value = parseFloat(sumtotal).toFixed(2);
                }
                document.getElementById('<%=chkChangePremium.ClientID%>').disabled = true;
            }
            else {
                var finalAnnual = document.getElementById('<%=txtFinalAnnualPremium.ClientID%>').value;
                var tescoAmount = document.getElementById('<%=txtTescoAmount.ClientID%>').value;
                if ((finalAnnual != "" || finalAnnual != "0" || finalAnnual != "0.00") && (tescoAmount != "0" || tescoAmount != "")) {
                    var sumtotal = parseFloat(finalAnnual) + parseFloat(tescoAmount);
                    document.getElementById('<%=txtFinalAnnualPremium.ClientID%>').value = parseFloat(sumtotal).toFixed(2);
                    document.getElementById('<%=hidFinalAnnualPremium.ClientID%>').value = parseFloat(sumtotal).toFixed(2);
                }
                document.getElementById('<%=chkChangePremium.ClientID%>').disabled = false;
            }
            //chkChangePremium
            //chkGetTesco
            //chkSelected
        }

        // **************** END *******************
        // Check exit renewal notice pdf 
        function CheckLinkExist(obj) {
            var IsExist = false;
            var http = new XMLHttpRequest();
            http.open('HEAD', obj.href, false);
            http.send();

            if (http.status != 404) {
                IsExist = true;
            }
            else {
                alert("No file found!");
            }
            return IsExist;
        }

        function scrollToQuote() {
            window.location.href = "#aQuote";
        }

        function DisplayClassOne() {
            if ($('#<%=ddlNInsuranceType.ClientID%>').val() == "10" || $('#<%=ddlNInsuranceType.ClientID%>').val() == "11") {
                document.getElementById('<%=trClass11.ClientID%>').style.display = "";
                document.getElementById('<%=trClass12.ClientID%>').style.display = "";
            }
            else {
                document.getElementById('<%=trClass11.ClientID%>').style.display = "none";
                document.getElementById('<%=trClass12.ClientID%>').style.display = "none";
            }
        }
        
    </script>

</asp:Content>
